open-webui/backend/open_webui/apps/retrieval/vector/connector.py
Timothy J. Baek 5b7cf88915 refac
2024-09-28 01:28:45 +02:00

11 lines
289 B
Python

from open_webui.apps.retrieval.vector.dbs.chroma import ChromaClient
from open_webui.apps.retrieval.vector.dbs.milvus import MilvusClient
from open_webui.config import VECTOR_DB
if VECTOR_DB == "milvus":
VECTOR_DB_CLIENT = MilvusClient()
else:
VECTOR_DB_CLIENT = ChromaClient()