From 5c8307f58a5d56c6167e93004bcd536e73186864 Mon Sep 17 00:00:00 2001 From: Benjamin Admin Date: Fri, 27 Feb 2026 07:51:12 +0100 Subject: [PATCH] fix(rag): use query_points instead of deprecated search method qdrant-client 1.17.0 removed the search() method in favor of query_points(). Update the wrapper to use the new API. Co-Authored-By: Claude Opus 4.6 --- rag-service/qdrant_client_wrapper.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/rag-service/qdrant_client_wrapper.py b/rag-service/qdrant_client_wrapper.py index 2678497..bfeafc0 100644 --- a/rag-service/qdrant_client_wrapper.py +++ b/rag-service/qdrant_client_wrapper.py @@ -167,12 +167,13 @@ class QdrantClientWrapper: ) qdrant_filter = qmodels.Filter(must=must_conditions) - results = self.client.search( + results = self.client.query_points( collection_name=collection, - query_vector=query_vector, + query=query_vector, limit=limit, query_filter=qdrant_filter, score_threshold=score_threshold, + with_payload=True, ) return [ @@ -181,7 +182,7 @@ class QdrantClientWrapper: "score": hit.score, "payload": hit.payload or {}, } - for hit in results + for hit in results.points ] # ------------------------------------------------------------------