|
@@ -6,14 +6,14 @@ from typing import Optional
|
|
|
|
|
|
from open_webui.retrieval.vector.main import VectorItem, SearchResult, GetResult
|
|
from open_webui.retrieval.vector.main import VectorItem, SearchResult, GetResult
|
|
from open_webui.config import (
|
|
from open_webui.config import (
|
|
- MILVUS_URI,
|
|
|
|
|
|
+ MILVUS_URI, MILVUS_DB,
|
|
)
|
|
)
|
|
|
|
|
|
|
|
|
|
class MilvusClient:
|
|
class MilvusClient:
|
|
def __init__(self):
|
|
def __init__(self):
|
|
self.collection_prefix = "open_webui"
|
|
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:
|
|
def _result_to_get_result(self, result) -> GetResult:
|
|
ids = []
|
|
ids = []
|