Skip to content

armgit / mem0

Public Imported from GitHub
0

The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.

fix deprecation warning: qdrant and version bump -> 0.1.58 (#2274)

Dev Khante06f95cea424
diff --git a/mem0/vector_stores/qdrant.py b/mem0/vector_stores/qdrant.py
index 708bf4fb4..73d6d0dd0 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 2d26b6699..c5c1b8c1f 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 <[email protected]>"]
exclude = [