short · 3 min
Reciprocal rank fusion
Merging ranked lists using only each document's position in them, never its score.
updated 27 Sept 2026
Two searches, one query. The keyword search returned A, B, C, D. The vector search returned F, A, B, C. We want one list. Who goes first?
F topped one list. A was near the top of both. And we can't look at the scores to decide, because a keyword score and a vector score live on different scales and can't be compared (that's the whole problem in hybrid search). Positions, though, can always be compared. First is first.
Reciprocal rank fusion, RRF, merges lists using only those positions.
The formula
Each list gives each document in it some points: one over a constant plus the document's rank there. Add up the points across lists and sort.
Ranks start at 1, and a document missing from a list gets nothing from it. The 2009 paper that introduced it set in a pilot run and never changed it.
Let's score our two lists at :
| Document | Keyword rank | Vector rank | k = 60 | k = 1 |
|---|---|---|---|---|
| A | 1 | 2 | 0.0325 | 0.833 |
| B | 2 | 3 | 0.0320 | 0.583 |
| C | 3 | 4 | 0.0315 | 0.450 |
| F | missing | 1 | 0.0164 | 0.500 |
| D | 4 | missing | 0.0156 | 0.200 |
At 60, the documents both searches found come first, and F, top of the vector list, ends up fourth. Look at the last column, though. At , F jumps above C.
What k is doing
sets how much the top of a list outweighs the rest. At , rank 1 gets and rank 10 gets , so first place is worth only 1.15 times tenth. Just being in the list matters almost as much as where. At it's against , 5.5 times, and the top few places dominate. So a low trusts one list's strong opinion. A high rewards the lists agreeing.
The price of using ranks: RRF can't tell whether first place won by a mile or by a hair. In return it needs no training data and no statistics about the collection.
So is 60 right?
In the original tests, which merged 30 search systems, it barely mattered:
Anything from about 20 to 100 landed within a whisker of the best, and every value beat the best single system (0.2016).
Hybrid search merges just two lists, and there matters more. Qdrant tried it on five public datasets in 2026, and the best ranged from about 1 to 60. It tracked one thing: how many right answers each query has. About one per query, small won. Tens or hundreds, large won. On one dataset, switching from a small to 60 changed the top result for 42% of queries.
Not every engine counts the same way. Qdrant numbers positions from 0, so its default means in the formula above, and to match the paper's 60 you set 61. And at low , documents tie more often (12.5% of top-10 results on one dataset, against 2.8% at 61). Qdrant returns ties in whatever order storage gives, so the same query can come back shuffled. Break ties yourself, by score and then by document ID.
So, back to F. Should one list's favourite beat a document both lists liked? With , no. With , yes. If your queries usually have one right answer, F's case is stronger. Start at 60, and if you have labelled queries, try a few smaller values and see which your data prefers.
Further reading
- Reciprocal Rank Fusion outperforms Condorcet and individual Rank Learning Methods, Gordon Cormack, Charles Clarke and Stefan Büttcher, SIGIR 2009. The original paper, two pages long. Worth reading in full.
- How to Tune Hybrid Search in Qdrant, Dylan Couzon (Qdrant), 2026. How behaves on modern two-list search, plus the counting-from-zero snag and ties.