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

11 lines
277 B
Python
Raw Normal View History

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