mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-16 11:57:51 +01:00
Milvus: add new config var, MILVUS_DB
modified: backend/open_webui/config.py modified: backend/open_webui/retrieval/vector/dbs/milvus.py
This commit is contained in:
@@ -6,14 +6,14 @@ from typing import Optional
|
||||
|
||||
from open_webui.retrieval.vector.main import VectorItem, SearchResult, GetResult
|
||||
from open_webui.config import (
|
||||
MILVUS_URI,
|
||||
MILVUS_URI, MILVUS_DB,
|
||||
)
|
||||
|
||||
|
||||
class MilvusClient:
|
||||
def __init__(self):
|
||||
self.collection_prefix = "open_webui"
|
||||
self.client = Client(uri=MILVUS_URI)
|
||||
self.client = Client(uri=MILVUS_URI, database=MILVUS_DB)
|
||||
|
||||
def _result_to_get_result(self, result) -> GetResult:
|
||||
ids = []
|
||||
|
||||
Reference in New Issue
Block a user