From e06f95cea4248faec1b1ce462e2f5e4ef42ead9e Mon Sep 17 00:00:00 2001 From: Dev Khant Date: Fri, 28 Feb 2025 16:41:45 +0530 Subject: [PATCH] fix deprecation warning: qdrant and version bump -> 0.1.58 (#2274) --- mem0/vector_stores/qdrant.py | 6 +++--- pyproject.toml | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mem0/vector_stores/qdrant.py b/mem0/vector_stores/qdrant.py index 708bf4fb..73d6d0dd 100644 --- a/mem0/vector_stores/qdrant.py +++ b/mem0/vector_stores/qdrant.py @@ -140,13 +140,13 @@ class Qdrant(VectorStoreBase): list: Search results. """ query_filter = self._create_filter(filters) if filters else None - hits = self.client.search( + hits = self.client.query_points( collection_name=self.collection_name, - query_vector=query, + query=query, query_filter=query_filter, limit=limit, ) - return hits + return hits.points def delete(self, vector_id: int): """ diff --git a/pyproject.toml b/pyproject.toml index 2d26b669..c5c1b8c1 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [tool.poetry] name = "mem0ai" -version = "0.1.57" +version = "0.1.58" description = "Long-term memory for AI Agents" authors = ["Mem0 "] exclude = [