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 chroma `get_all` method (#1701)

Dev Khantaba5bb052dc5
diff --git a/mem0/vector_stores/chroma.py b/mem0/vector_stores/chroma.py
index 10e978a59..c06a0bda0 100644
--- a/mem0/vector_stores/chroma.py
+++ b/mem0/vector_stores/chroma.py
@@ -209,6 +209,5 @@ class ChromaDB(VectorStoreBase):
Returns:
List[OutputData]: List of vectors.
"""
- array = [[0 for _ in range(1536)] for _ in range(1536)]
- results = self.collection.query(query_embeddings=array, where=filters, n_results=limit)
- return self._parse_output(results)
+ results = self.collection.get(where=filters, limit=limit)
+ return [self._parse_output(results)]
diff --git a/pyproject.toml b/pyproject.toml
index 38e46bcea..4bb5c5d09 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -1,6 +1,6 @@
[tool.poetry]
name = "mem0ai"
-version = "0.0.18"
+version = "0.0.19"
description = "Long-term memory for AI Agents"
authors = ["Mem0 <[email protected]>"]
exclude = [