Skip to content

The agent engineering platform.

community: allow chroma DB delete() to use "where" argument (#19826)

conjuncts818267bbc349
diff --git a/libs/community/langchain_community/vectorstores/chroma.py b/libs/community/langchain_community/vectorstores/chroma.py
index fdd756e14d..248dff00d5 100644
--- a/libs/community/langchain_community/vectorstores/chroma.py
+++ b/libs/community/langchain_community/vectorstores/chroma.py
@@ -894,7 +894,7 @@ class Chroma(VectorStore):
Args:
ids: List of ids to delete.
"""
- self._collection.delete(ids=ids)
+ self._collection.delete(ids=ids, **kwargs)
def __len__(self) -> int:
"""Count the number of documents in the collection."""