From 9dde4a82d36ca76e9f3750f19b402d895541da96 Mon Sep 17 00:00:00 2001 From: MiXaiLL76 Date: Wed, 1 Apr 2026 00:23:14 +0300 Subject: [PATCH] resolve None limit --- backend/open_webui/retrieval/vector/dbs/qdrant_multitenancy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/backend/open_webui/retrieval/vector/dbs/qdrant_multitenancy.py b/backend/open_webui/retrieval/vector/dbs/qdrant_multitenancy.py index 11641b90f1..1f14ce9a68 100644 --- a/backend/open_webui/retrieval/vector/dbs/qdrant_multitenancy.py +++ b/backend/open_webui/retrieval/vector/dbs/qdrant_multitenancy.py @@ -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")