mirror of
https://github.com/open-webui/open-webui
synced 2024-11-17 14:02:51 +00:00
19 lines
593 B
Python
19 lines
593 B
Python
from open_webui.config import VECTOR_DB
|
|
|
|
if VECTOR_DB == "milvus":
|
|
from open_webui.apps.retrieval.vector.dbs.milvus import MilvusClient
|
|
|
|
VECTOR_DB_CLIENT = MilvusClient()
|
|
elif VECTOR_DB == "qdrant":
|
|
from open_webui.apps.retrieval.vector.dbs.qdrant import QdrantClient
|
|
|
|
VECTOR_DB_CLIENT = QdrantClient()
|
|
elif VECTOR_DB == "opensearch":
|
|
from open_webui.apps.retrieval.vector.dbs.opensearch import OpenSearchClient
|
|
|
|
VECTOR_DB_CLIENT = OpenSearchClient()
|
|
else:
|
|
from open_webui.apps.retrieval.vector.dbs.chroma import ChromaClient
|
|
|
|
VECTOR_DB_CLIENT = ChromaClient()
|