Skip to content

Commit

Permalink
langchain_chroma[patch]: updated example for get documents with where…
Browse files Browse the repository at this point in the history
… 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.
  • Loading branch information
RidhamGolakiya authored Oct 8, 2024
1 parent e3e9ee8 commit 73ad7f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/partners/chroma/langchain_chroma/vectorstores.py
Original file line number Diff line number Diff line change
Expand Up @@ -941,7 +941,7 @@ def get(
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.
Expand Down

0 comments on commit 73ad7f2

Please sign in to comment.