Find answers from the community

Updated 6 months ago

Is there any way to filter out by

At a glance

The community member is looking for a way to filter retrieved files by their file names, specifically to match a user's name (Cuc113 Rolfson709) in the file name. The community member mentions that the retriever occasionally pulls files from other patients, and they want to only retrieve files that match the user's name.

In the comments, another community member suggests using the ExactMatchFilter with the key "id" and value "123456" to filter the metadata.

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