2024-09-10 01:27:50 +00:00
|
|
|
from open_webui.config import VECTOR_DB
|
|
|
|
|
2024-09-10 03:37:06 +00:00
|
|
|
if VECTOR_DB == "milvus":
|
2024-10-02 21:18:42 +00:00
|
|
|
from open_webui.apps.retrieval.vector.dbs.milvus import MilvusClient
|
|
|
|
|
2024-09-10 03:37:06 +00:00
|
|
|
VECTOR_DB_CLIENT = MilvusClient()
|
2024-10-09 10:51:43 +00:00
|
|
|
elif VECTOR_DB == "qdrant":
|
|
|
|
from open_webui.apps.retrieval.vector.dbs.qdrant import QdrantClient
|
|
|
|
|
|
|
|
VECTOR_DB_CLIENT = QdrantClient()
|
2024-09-10 03:37:06 +00:00
|
|
|
else:
|
2024-10-02 21:18:42 +00:00
|
|
|
from open_webui.apps.retrieval.vector.dbs.chroma import ChromaClient
|
|
|
|
|
2024-09-10 03:37:06 +00:00
|
|
|
VECTOR_DB_CLIENT = ChromaClient()
|