mirror of
https://github.com/open-webui/open-webui
synced 2025-06-26 10:17:00 +00:00
fix critical bug
This commit is contained in:
parent
b56f77ed47
commit
2c59f2dcaf
@ -59,6 +59,8 @@ class QdrantClient:
|
|||||||
self, collection_name: str, vectors: list[list[float | int]], limit: int
|
self, collection_name: str, vectors: list[list[float | int]], limit: int
|
||||||
) -> Optional[SearchResult]:
|
) -> Optional[SearchResult]:
|
||||||
# Search for the nearest neighbor items based on the vectors and return 'limit' number of results.
|
# Search for the nearest neighbor items based on the vectors and return 'limit' number of results.
|
||||||
|
if limit is None:
|
||||||
|
limit=10000000 # otherwise qdrant would set limit to 10!
|
||||||
|
|
||||||
query_response = self.client.query_points(
|
query_response = self.client.query_points(
|
||||||
collection_name=f"{self.collection_prefix}_{collection_name}",
|
collection_name=f"{self.collection_prefix}_{collection_name}",
|
||||||
@ -78,6 +80,8 @@ class QdrantClient:
|
|||||||
if not self.has_collection(collection_name):
|
if not self.has_collection(collection_name):
|
||||||
return None
|
return None
|
||||||
try:
|
try:
|
||||||
|
if limit is None:
|
||||||
|
limit=10000000 # otherwise qdrant would set limit to 10!
|
||||||
|
|
||||||
field_conditions = []
|
field_conditions = []
|
||||||
for key, value in filter.items():
|
for key, value in filter.items():
|
||||||
|
Loading…
Reference in New Issue
Block a user