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

Example updated for vectorstore ChromaDB.

If we want to apply multiple filters then ChromaDB supports filters like
this:
Reference: [ChromaDB
filters](https://cookbook.chromadb.dev/core/filters/)

Thank you.
This commit is contained in:
RIdham Golakiya 2024-10-09 01:51:58 +05:30 committed by GitHub
parent e3e9ee8398
commit 73ad7f2e7a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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.