Skip to content

The agent engineering platform.

langchain_chroma[patch]: updated example for get documents with where clause (#26767)

RIdham Golakiya73ad7f2e7afd
diff --git a/libs/partners/chroma/langchain_chroma/vectorstores.py b/libs/partners/chroma/langchain_chroma/vectorstores.py
index 90c59ef2be..945057f4ad 100644
--- a/libs/partners/chroma/langchain_chroma/vectorstores.py
+++ b/libs/partners/chroma/langchain_chroma/vectorstores.py
@@ -941,7 +941,7 @@ class Chroma(VectorStore):
Args:
ids: The ids of the embeddings to get. Optional.
where: A Where type dict used to filter results by.
- E.g. `{"color" : "red", "price": 4.20}`. Optional.
+ E.g. `{"$and": [{"color": "red"}, {"price": 4.20}]}` Optional.
limit: The number of documents to return. Optional.
offset: The offset to start returning results from.
Useful for paging results with limit. Optional.