Moving new config to under retreval

This commit is contained in:
David Tippett 2024-11-04 15:10:14 -05:00
parent 4baab4bce8
commit afca48028f
2 changed files with 4 additions and 12 deletions

View File

@ -1,12 +0,0 @@
from open_webui.apps.rag.vector.dbs.chroma import ChromaClient
from open_webui.apps.rag.vector.dbs.milvus import MilvusClient
from open_webui.config import VECTOR_DB
if VECTOR_DB == "milvus":
VECTOR_DB_CLIENT = MilvusClient()
elif VECTOR_DB == "opensearch":
VECTOR_DB_CLIENT = OpenSearchClient()
else:
VECTOR_DB_CLIENT = ChromaClient()

View File

@ -8,6 +8,10 @@ elif VECTOR_DB == "qdrant":
from open_webui.apps.retrieval.vector.dbs.qdrant import QdrantClient from open_webui.apps.retrieval.vector.dbs.qdrant import QdrantClient
VECTOR_DB_CLIENT = QdrantClient() VECTOR_DB_CLIENT = QdrantClient()
elif VECTOR_DB == "opensearch":
from open_webui.apps.retrieval.vector.dbs.opensearch import OpenSearchClient
VECTOR_DB_CLIENT = OpenSearchClient()
else: else:
from open_webui.apps.retrieval.vector.dbs.chroma import ChromaClient from open_webui.apps.retrieval.vector.dbs.chroma import ChromaClient