Complete the Reciprocal Rank Fusion (RRF) score formula
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
RRF sums 1/(k+rank) over retrievers, where rank is the candidate's position in each retriever's result list and k smooths the curve.
Picture two judges scoring contestants but on totally different scales. One scores out of ten, the other out of a hundred. You cannot just add their numbers; the bigger scale would always win. A fair fix is to ignore the raw numbers and only use the ranking. Each judge says who is first, second, third. You give every contestant a small bonus when a judge ranks them high, and a much smaller bonus when ranked low. Add the bonuses across judges and that is the final score. The bonus for rank position uses a soft slope so first place and second place do not differ by miles. That soft slope is the small number called k. Reciprocal Rank Fusion is exactly this trick applied to search results.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
60s: write the formula, name the two filled blanks, explain the `+ k` smoothing role, give the conventional `k=60` default, and connect it to hybrid retrieval as the rank-only fusion that avoids score calibration.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Forgetting that RRF works on ranks, not raw scores. Replacing rank with the cosine or BM25 score gives a fundamentally different (and worse) fusion.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.