fix(rag): use query_points instead of deprecated search method
All checks were successful
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-consent (push) Successful in 38s
CI / test-python-voice (push) Successful in 36s
CI / test-bqas (push) Successful in 28s

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 <noreply@anthropic.com>
This commit is contained in:
Benjamin Admin
2026-02-27 07:51:12 +01:00
parent 92ca5b7ba5
commit 5c8307f58a

View File

@@ -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
]
# ------------------------------------------------------------------