Part 2 · Finding the evidence · Chapter 8
Combining lists: fusion
In one sentence: when several searches each return a ranked list, fusion merges them into one list, and the simplest good way to do it uses only the positions of the documents.
Why you should care
No single search finds everything. A keyword search misses documents that use other words. An embedding search misses exact names and numbers. A long question can be searched in many ways, and each way finds a slightly different set. If you can merge the lists well, you keep the strengths of each search. Almost every modern RAG system has a fusion step, and in ours it is one line of arithmetic.
Words you need
- Ranked list
- The documents a search returns, best first. Position 1 is the top.
- Rank
- A document's position in one list: 1, 2, 3 and so on.
- Fusion
- Merging several ranked lists into one.
- Reciprocal Rank Fusion (RRF)
- A fusion method that gives each document 1 / (k + rank) points from every list it appears in, and adds the points up.
- k
- The constant in RRF. A larger k makes the top positions matter less. The usual value is 60.
- Score fusion
- Fusion that adds the searches' scores instead of using positions. CombSUM is the best-known kind.
- Hybrid search
- Keyword search and embedding search run together, then fused.
- Pool
- The set of candidate documents that goes on to the next step.
Core The idea
Suppose three friends each give you a ranked list of restaurants. You want one list. You could ask each friend for marks out of ten and add them up. But one friend gives everything a nine, and another never goes above six. Their marks are not on the same scale, so the generous friend decides the result.
Positions do not have this problem. “Second on my list” means the same thing for every friend. Reciprocal Rank Fusion uses only positions:
With k = 60, first place in a list is worth 1/61, second place 1/62, and place 100 is worth 1/160. The points fall slowly. So one first place is worth less than two decent places, and a document that several searches agree on rises to the top.
A worked example
Three searches for the same question each return four documents. This is a toy example, made up to show the arithmetic.
| Rank | List A · keywords | List B · first sentence | List C · rewritten question |
|---|---|---|---|
| 1 | d3 | d1 | d5 |
| 2 | d1 | d5 | d1 |
| 3 | d7 | d3 | d8 |
| 4 | d2 | d9 | d3 |
Now add the points, with k = 60.
| Fused rank | Document | Points | Total |
|---|---|---|---|
| 1 | d1 | 1/62 + 1/61 + 1/62 | 0.0487 |
| 2 | d3 | 1/61 + 1/63 + 1/64 | 0.0479 |
| 3 | d5 | 1/62 + 1/61 | 0.0325 |
| 4 | d7 | 1/63 | 0.0159 |
| 4 | d8 | 1/63 | 0.0159 |
| 6 | d2 | 1/64 | 0.0156 |
| 6 | d9 | 1/64 | 0.0156 |
Three things to notice:
- d1 wins without being first twice. It is in all three lists, near the top each time. Agreement beats one high place.
- d5 is first in one list and second in another, and still comes third. It is missing from list A, and a missing list gives zero points.
- There are ties. d7 and d8 have the same score. A real system needs a fixed tie-break rule, or two runs of the same code can give different lists. Ours breaks ties by document ID.
What fusion cannot do
Fusion only re-orders what the searches found. If no list contains a document, fusion cannot add it. To find more, you need a different search or a deeper one, not a better fusion formula.
Watch and read
- VideoUnderstanding Reciprocal Rank Fusion in Hybrid Search TechViz - The Data Science Guy. RRF inside a hybrid search pipeline. Link checked 14 Nov 2026
- VideoReciprocal Rank Fusion (RRF) Algorithm Mahaboob Ali shaik. The algorithm on its own. Link checked 14 Nov 2026
- ArticleReciprocal rank fusion: why combining search results is harder than it looks Redis. Explains clearly why BM25 scores and cosine similarities should not be added. It is a company blog, so skip the product section at the end. Read 14 Nov 2026
- PaperReciprocal Rank Fusion Outperforms Condorcet and Individual Rank Learning Methods Cormack, Clarke and Büttcher, SIGIR 2009. The original paper. It is two pages long, and it is where k = 60 comes from. Link checked 14 Nov 2026
For the two videos we confirmed that the link opens and the title and channel match. We have not yet watched them through, so the notes describe the topic, not the quality.
How we did it at TREC 2026
Fusion appears in four of our five tracks, in three different forms.
| Track | What was fused | How | Run |
|---|---|---|---|
| RAG | Seven BM25 lists, one for each version of the narrative, 100 documents each | RRF, k = 60. Top 100 kept. | the pool behind every generation run |
| RAG, deeper | The same seven searches, 1,000 documents each | RRF, k = 60. The whole union goes to the reranker. | isu-bm25-rrf7-deep and the deep-pool runs |
| RAGTIME | Ten lists: the title and the problem statement, each sent to five language pipelines | RRF, k = 60 | isu-mlir-base |
| RAGTIME | The same ten lists | CombSUM on min-max normalized scores | isu-mlir-csum |
| Change Detection | A BM25 score and a bge-m3 embedding score for each document | Half and half, on the scores | fx40, fburst |
In the RAG track, each narrative is a long paragraph. We wrote seven versions of it as queries, such as the full narrative, its first sentence and two keyword versions (Chapter 7). No language model was used to write them. Each version went to BM25 on the ClimbMix corpus. RRF merged the seven lists, and the top 100 became the evidence pool for all our generation runs.
The two RAGTIME retrieval runs are a planned pair. They use the same ten lists and differ only in the fusion method. In the top 20 documents, the two methods agree on 74%. So the choice of fusion formula changes about a quarter of what a reader would see first.
What the scores say
The RAG retrieval task scored document sets with automatic judgments. It did not look at the order.
| Document set | Documents per narrative | Set precision | Set recall | Nugget gain (AutoNuggetizer) |
|---|---|---|---|---|
| Track median | 100 | 0.3499 | 0.1002 | 0.6268 |
| BM25 + RRF, top 100 | 100 | 0.2004 | 0.0840 | 0.7139 |
| Deep pool, reranked top 100 | 100 | 0.3130 | 0.1332 | 0.6291 |
Field: 114 runs from 27 teams. Precision and recall on 82 narratives, nugget gain on 25. Source: the RAG tab of our results dashboard and the retrieval slide of the RAG talk.
What surprised us
A second lesson came from our own logs. In the first pool, each of the seven searches returned 100 documents. That made 28,256 different narrative-document pairs, but only the fused top 100 per narrative, 11,872 pairs, ever reached the reranker. Nothing below fused rank 100 could be rescued. Fusion followed by a hard cut can throw away documents that a better model would have liked.
Try it
Lab 3, part 1. RRF fits in ten lines of Python. Type it in, then check it against the worked example above.
from collections import defaultdict
def rrf(lists, k=60):
"""lists: several ranked lists of document ids, best first."""
score = defaultdict(float)
for one_list in lists:
for rank, doc in enumerate(one_list, start=1):
score[doc] += 1.0 / (k + rank)
# highest score first; ties broken by document id
return sorted(score.items(), key=lambda kv: (-kv[1], kv[0]))
A = ["d3", "d1", "d7", "d2"]
B = ["d1", "d5", "d3", "d9"]
C = ["d5", "d1", "d8", "d3"]
for doc, s in rrf([A, B, C]):
print(doc, round(s, 4))
- Run it. Do you get d1, d3, d5 at the top with 0.0487, 0.0479 and 0.0325?
- Change k to 1. The order of this example stays the same, but look at the scores: first place is now worth much more than fourth. Build a small example where k = 1 and k = 60 give a different winner.
- Remove the tie-break (
kv[0]) and explain why that is risky for a submission that must be reproducible. - With an agent: ask a coding agent to write RRF without showing it this code. Then audit it. Does it start ranks at 0 or at 1? What does it do with ties and with duplicates inside one list?
Check yourself
- Why is it unsafe to add a BM25 score to a cosine similarity?
- With k = 60, which is worth more: one first place, or two places at rank 70?
- A document is ranked 1 by one search and is missing from six others. Where will it land after RRF over all seven, roughly?
- Your fused top 100 misses a document you know is relevant. Name two different reasons this can happen.
- Our fused list had lower precision but higher nugget gain than the median. What does each number measure, in plain words?
Answers
- They are on different scales. BM25 has no fixed range and cosine similarity stays between −1 and 1, so the larger numbers decide the sum.
- One first place, but only just: 1/61 = 0.0164 against 2 × 1/130 = 0.0154. That closeness is the point of a large k.
- It keeps only 1/61 = 0.0164. Any document that appears in two or more lists near the top will pass it, so it usually drops well down the list.
- No search returned it at all, or it was returned low in few lists and fell below the cut.
- Precision: the share of the returned documents that are relevant. Nugget gain: the share of the key facts that the returned documents contain.
Go deeper
- Why 60? Cormack, Clarke and Büttcher chose k = 60 in a pilot study and reported that the result is not sensitive to the exact value. Treat it as a default, not a law. Test k on development data if you have any.
- Score fusion. CombSUM adds normalized scores, and CombMNZ also multiplies by the number of lists that returned the document. Score fusion keeps the size of the gap between documents, which RRF throws away. It needs careful normalization, and one outlier score can squeeze all the others together. Our
isu-mlir-csumrun exists to test this against RRF on the same lists. - Weighted RRF. Multiply each list's points by a weight if you trust one search more. With labelled queries you can learn the weights.
- Fusion and depth interact. Fusing lists of 100 and fusing lists of 1,000 give different top 100s. Our deep pool is the experiment for this. See Chapter 10.
- Fusion of answers, not documents. In Video QA we fused the answers of several models. The problem is different, because the things being merged are a handful of options and not ranked documents. See Chapter 37.
- Project idea. Take the seven-list pool for ten narratives. Compare RRF at k = 1, 10, 60 and 200 with CombSUM. Measure how much the top 20 changes, then judge by hand which version you would rather give to a writer.