Added mulit id filters support for all vectorstores (#3269)

This commit is contained in:
Parshva Daftari
2025-08-04 14:52:57 -07:00
committed by GitHub
parent 57a16aeb4b
commit 42e60d6724
8 changed files with 728 additions and 45 deletions
+3 -2
View File
@@ -160,8 +160,9 @@ class Langchain(VectorStoreBase):
if hasattr(self.client, "_collection") and hasattr(self.client._collection, "get"):
# Convert mem0 filters to Chroma where clause if needed
where_clause = None
if filters and "user_id" in filters:
where_clause = {"user_id": filters["user_id"]}
if filters:
# Handle all filters, not just user_id
where_clause = filters
result = self.client._collection.get(where=where_clause, limit=limit)