Find answers from the community

Updated 3 months ago

Bm25

is there any way to filter by metadata or document field when retrieving with bm25retriever from MongoDocumentStore? Please help
Attachments
image.png
image.png
L
T
5 comments
Because of how bm25 works, you can just filter the list of returned nodes right?
I actually havent thought of that πŸ˜… , I was thinking of filtering before the retrieve, how can I implement your method inside QueryFusionRetriever? Do I have to modify the class it self?
Hmmm, you could implement a custom retriever that wraps the bm25 retriever, to then filter πŸ˜…

Custom retrievers are not too bad to implement
I'll try that out, thanks a ton πŸ™‡β€β™‚οΈ
Add a reply
Sign up and join the conversation on Discord