resolve None limit

This commit is contained in:
MiXaiLL76 2026-04-01 00:23:14 +03:00
parent c578df9249
commit 9dde4a82d3

View file

@ -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")