Find answers from the community

Updated 5 months ago

Is there any way to filter out by

At a glance
Is there any way to filter out by retreived file name? For instance, I have a file Cuc113_Rolfson709_e74ac32b-102c-8a1d-cd6c-3b337cf8614d.json and a query that is looking for someone named Cuc113 Rolfson709, however the retriever occasionally pulls from the files of other patients. Can I somehow add the file metadata information and only pull from the files that matche the users name?
T
1 comment
You can use the ExactMatchFilter if you have it appended as metadata
Plain Text
MetadataFilters(filters=[
    ExactMatchFilter(key="id", value="123456"),
])
Add a reply
Sign up and join the conversation on Discord