mirror of
https://github.com/open-webui/open-webui
synced 2024-11-24 21:13:59 +00:00
11 lines
277 B
Python
11 lines
277 B
Python
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()
|
|
else:
|
|
VECTOR_DB_CLIENT = ChromaClient()
|