The Memory Layer for AI Agents - Drop-in memory infrastructure for AI agents and apps. Context that persists. Built for production.
Python agentic-memoryagentic-memory-systemagentsaiai-agentschatgptgenaillmlong-term-memorymemorymemory-managementpythonragstate-management
[Misc] Clean up unnecessary checks in chromadb vector store integration (#2284)
Deshraj Yadav20c03eaa9280
diff --git a/mem0/vector_stores/chroma.py b/mem0/vector_stores/chroma.pyindex 96cc7440f..fc11ad203 100644--- a/mem0/vector_stores/chroma.py+++ b/mem0/vector_stores/chroma.py@@ -104,12 +104,6 @@ class ChromaDB(VectorStoreBase):Returns:chromadb.Collection: The created or retrieved collection."""- # Skip creating collection if already exists- collection_info = self.client.get_collection(name=name)- if collection_info:- logging.debug(f"Collection {name} already exists. Skipping creation.")- return collection_info-collection = self.client.get_or_create_collection(name=name,embedding_function=embedding_fn,