Open rodrigomeireles opened 5 days ago
I figured maybe no one answered because my question is too generic. I am looking at the PGVector retriever.
@arnavsinghvi11 you seem to have comitted recently to the PgVector retriever. Do you have any idea on how to add filtering?
I was wondering how do I specify metadata to the retrievers' queries. For instance, a user might ask about something specifically for 2022 and semantically, all year numbers are very similar. Therefore I might want to query all documents with a "year" label attached to them being equal to 2022.
This is trivially done if I have control of the query and almost all vector DBs support metadata filters. How should I go about implementing this in my Retriever? Is there any way to use the built-in retrievers?
Any suggestion is appreciated.