mirror of
https://github.com/hwchase17/langchain.git
synced 2025-06-20 13:54:48 +00:00
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:
parent
e3e9ee8398
commit
73ad7f2e7a
@ -941,7 +941,7 @@ class Chroma(VectorStore):
|
|||||||
Args:
|
Args:
|
||||||
ids: The ids of the embeddings to get. Optional.
|
ids: The ids of the embeddings to get. Optional.
|
||||||
where: A Where type dict used to filter results by.
|
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.
|
limit: The number of documents to return. Optional.
|
||||||
offset: The offset to start returning results from.
|
offset: The offset to start returning results from.
|
||||||
Useful for paging results with limit. Optional.
|
Useful for paging results with limit. Optional.
|
||||||
|
Loading…
Reference in New Issue
Block a user