mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-06 08:18:53 +00:00
resolve None limit
This commit is contained in:
parent
c578df9249
commit
9dde4a82d3
1 changed files with 2 additions and 0 deletions
|
|
@ -372,6 +372,8 @@ class QdrantClient(VectorDBBase):
|
|||
"""
|
||||
if not self.client or not vectors:
|
||||
return None
|
||||
if limit is None:
|
||||
limit = NO_LIMIT # otherwise qdrant would set limit to 10!
|
||||
mt_collection, tenant_id = self._get_collection_and_tenant_id(collection_name)
|
||||
if not self.client.collection_exists(collection_name=mt_collection):
|
||||
log.debug(f"Collection {mt_collection} doesn't exist, search returns None")
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue