open-webui/backend/open_webui/apps/retrieval/vector/connector.py

11 lines
297 B
Python
Raw Normal View History

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":
from open_webui.apps.retrieval.vector.dbs.milvus import MilvusClient
2024-09-10 03:37:06 +00:00
VECTOR_DB_CLIENT = MilvusClient()
else:
from open_webui.apps.retrieval.vector.dbs.chroma import ChromaClient
2024-09-10 03:37:06 +00:00
VECTOR_DB_CLIENT = ChromaClient()