Reciprocal Rank Fusion
In this article
- Compute Reciprocal Rank Fusion by hand for two ranked lists and read the merged order.
- Explain what the rank constant k changes, and why 60 is a starting point rather than a rule.
- Name what rank-only fusion cannot see, and spot when that costs you the right answer.
- Terms defined here: reciprocal rank fusion.
Overview
In hybrid search you run two searches and get two ranked lists. One list carries BM25 scores such as 12.4, the other carries cosine similarities, a measure of closeness in meaning, such as 0.62. Add them and the bigger numbers win; rescale each list and one extreme value moves every other score. Reciprocal Rank Fusion takes a blunter route: it throws the scores away and keeps only where each result sits in each list. [1,2]
In an invented example, Brightline, a home-internet provider, runs a support assistant that searches about 2,000 chunks, short pieces of its help pages and router manuals, with a vector index and a lexical index (one that matches exact words) over the same chunks, and puts the best 3 into each request.
After this you can compute the fused order by hand, say what the rank constant k changes, and name what a rank cannot tell you.
Sign in to keep reading
The rest of this article opens with an account. An account also keeps your progress and quiz results on every device, and lets you follow news for up to five topics.
Still to read in this article
- Adding up positions
- Brightline's two lists
- RRF by hand at k = 60
- Turning the rank constant
- What ranks cannot see
- Common mistakes
- In production
- Sources
- Check yourself, 13 questions