WRITE · TRACE · UNDERSTAND
Fuse retriever rankings without comparing incompatible scores
Implement rrf(rankings,k=60) returning all ids sorted by descending sum 1/(k+rank), then id.
Read lesson: Fuse retriever rankings without comparing incompatible scores →
Your experiment
Implement rrf(rankings,k=60) returning all ids sorted by descending sum 1/(k+rank), then id. Rank unique ids within each list starting at 1, ignoring repeated appearances without consuming another rank. Require k>0.
Python runs in your browser. Your draft stays on this device.
What to look for
RRF uses ranking evidence instead of uncalibrated score scales. Tune and evaluate it on representative relevance judgments, keeping final evaluation queries separate from parameter selection.
Watch your code work
Ready to experimentWrite a solution or load the worked answer, then choose Trace & check.
Step through arrays, variables and training curves produced by your own Python.
