Practical thinking about AI tools and everyday work.

Reciprocal rank fusion combines search lists without comparing their raw scores

Two ranked document stacks converging into a third stack on a tidy desk.
AI-generated photographic illustration; not documentary photography.

A keyword search and a vector search can both return useful documents, but their scores may live on different scales. Adding those raw values together can give one method an accidental advantage. Reciprocal rank fusion, or RRF, combines the positions in the ranked lists instead.

Each appearance makes a contribution

Microsoft’s RRF documentation describes a contribution of 1 divided by rank plus a constant, summed across the lists in which a document appears. The constant moderates the effect of being near the top; it is separate from a nearest-neighbour result-count setting that may also be called k.

For an illustrative unweighted calculation, use a constant of 60. Document A ranks first in one list and fourth in another, giving 1/61 + 1/64, about 0.0320. Document B ranks second in both, giving 1/62 + 1/62, about 0.0323. B narrowly leads in this constructed example even though it never occupied first place.

Agreement can matter without proving relevance

A document found by several methods can accumulate contributions, while an item missing from a list contributes nothing from that list. The fusion score is not a probability that the answer is correct, nor does it reveal how much better one raw retrieval score was than another.

For evaluation, keep the original ranked lists alongside the fused output. When an unexpected document rises, inspect which lists supplied it and where it appeared. This is more informative than looking only at the final decimal score.

Check the identifiers before judging the algorithm

Ensure that the same document has a consistent identifier across retrieval methods. If one source returns several chunks and another returns whole documents, decide what entity you are combining. Otherwise duplicate representations can complicate the interpretation.

Test with queries and relevance judgments that match your users’ needs. RRF offers a straightforward way to reconcile incompatible score scales, but the quality of the candidate lists and the definition of a useful result still determine whether the combined ranking helps.