The RRF retriever could use a weighting option

Hi!

I would like to combine a multi_match query with two kNN queries. For that I use the RRF retriever, which itself uses a Standard retriever and two kNN retrievers. This works fine, but I have no option to add weighting on each of the three child retrievers, like the Linear retriever provides.

Is this functionality planned for the RRF retriever?

Alternatively, I could imagine a Compound retriever (suggested name), copying the Linear one and replacing both the Linear and RRF retrievers. It would get a new RRF-type normalizer, next to the existing "none" and "minmax" ones, any possibly others in the future. Just a thought.

Thanks!

Jan Stap

1 Like

How would you imagine RRF retriever to use weights?

For RRF retriever raw scores in individual child retriever don’t matter, just their order.

Good news - supported for weighted RRF will be coming in a future release - see the PR

1 Like