Forráskód Böngészése

fix: replace deprecated qdrant_client.search() with recommended API

admin_5 5 hónapja
szülő
commit
c981042e75

+ 3 - 2
Co-creation-projects/YYHDBL-HelloCodeAgentCli/memory/storage/qdrant_store.py

@@ -377,9 +377,9 @@ class QdrantVectorStore:
                 search_params = models.SearchParams(hnsw_ef=self.search_ef, exact=self.search_exact)
             except Exception:
                 search_params = None
-            search_result = self.client.search(
+            response = self.client.query_points(
                 collection_name=self.collection_name,
-                query_vector=query_vector,
+                query=query_vector,
                 query_filter=query_filter,
                 limit=limit,
                 score_threshold=score_threshold,
@@ -387,6 +387,7 @@ class QdrantVectorStore:
                 with_vectors=False,
                 search_params=search_params
             )
+            search_result = response.points
             
             # 转换结果格式
             results = []