mirror of
https://github.com/open-webui/open-webui
synced 2024-12-27 22:32:37 +00:00
11 lines
297 B
Python
11 lines
297 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()
|
|
else:
|
|
from open_webui.apps.retrieval.vector.dbs.chroma import ChromaClient
|
|
|
|
VECTOR_DB_CLIENT = ChromaClient()
|