mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-02 10:19:44 -05:00
refac
This commit is contained in:
@@ -137,7 +137,7 @@ class MilvusClient:
|
||||
|
||||
def query(
|
||||
self, collection_name: str, filter: dict, limit: int = 1
|
||||
) -> Optional[SearchResult]:
|
||||
) -> Optional[GetResult]:
|
||||
# Query the items from the collection based on the filter.
|
||||
filter_string = " && ".join(
|
||||
[
|
||||
@@ -152,7 +152,7 @@ class MilvusClient:
|
||||
limit=limit,
|
||||
)
|
||||
|
||||
return self._result_to_search_result([result])
|
||||
return self._result_to_get_result([result])
|
||||
|
||||
def get(self, collection_name: str) -> Optional[GetResult]:
|
||||
# Get all the items in the collection.
|
||||
|
||||
Reference in New Issue
Block a user