How to filter metadata first and then perform similarity search by Chromadb? #28311
Unanswered
SetonLiang
asked this question in
Q&A
Replies: 1 comment 3 replies
-
@SetonLiang Maybe you're looking for |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Checked other resources
Commit to Help
Example Code
Description
I want to first filter out documents in Chromadb where the metadata contains or matches the faculty name, and then perform a similarity search. I used SelfQueryRetriever, but retriever.invoke always shows filter=None. I want to know how to accurately filter custom attributes.
Alternatively, are there other methods to filter first and then perform similarity search?
System Info
pip freeze | grep langchain"
platform (windows / linux / mac)
python version
Beta Was this translation helpful? Give feedback.
All reactions