short · 3 min
MRR
Mean reciprocal rank: how high the first right result lands, scored 1, 1/2, 1/3... and averaged over your test questions.
updated 27 Sept 2026
Two search systems, same test questions. Both find a right chunk in their top five for every question, so recall@5 scores them the same: perfect. But one puts the right chunk first nearly every time, and the other usually puts it fourth. If a user is going to read the top result, or the model leans on it, those aren't the same system at all.
We need a number that cares where the first right answer lands. That's MRR, mean reciprocal rank.
One question at a time
For one test question, read down the results until you hit the first one your labels mark as relevant (how you get labels is in retrieval evaluation). Its position is the rank, and the question scores one over it. First place scores 1, second 1/2, third 1/3. Nothing relevant at all scores 0. Then average over the questions.
Say we have three:
| Question | First relevant result at | Score |
|---|---|---|
| 1 | rank 2 | 1/2 = 0.50 |
| 2 | rank 1 | 1/1 = 1.00 |
| 3 | rank 5 | 1/5 = 0.20 |
| MRR | (0.50 + 1.00 + 0.20) / 3 = 0.57 |
Look at how fast the score falls:
Moving the right result from rank 2 to rank 1 adds 0.5. Moving it from 5 to 4 adds 0.05. So MRR cares a lot about the very top and hardly at all about the rest. Back to our two systems: the one that puts the answer first scores near 1, the one that puts it fourth scores near 0.25.
Where it came from, and what it misses
MRR was the official score of the first big question-answering evaluation, the TREC-8 track run by NIST (the report came out in 2000). Systems got 200 fact questions and returned five ranked answers each, and people marked each answer right or wrong. The best system scored 0.66.
They picked it because it sits between 0 and 1, averages well across questions, and punishes a miss without crushing the score. The same report listed its weak spots, and they still hold. With five answers allowed, a question can only score 0, 0.2, 0.25, 0.33, 0.5 or 1. Only the first right answer counts, so finding three good ones scores the same as finding one. And there's no credit for saying "I don't know": a system that could tell it had nothing gained nothing by saying so.
So which number do we watch?
MRR fits when one result is enough and it needs to be on top: a chatbot answering from one passage, or checking whether a reranker puts the best chunk first. It fits badly when we need several good results, like a list of product suggestions, since one hit at rank 1 scores a perfect 1 however bad the rest is. It's also harder to explain than recall: "0.57" isn't a share of anything.
In a RAG pipeline that sends all k chunks to the model, the model reads the whole top k, so recall@k is usually the main number. MRR rides along as the second one, telling you how often the answer is right at the top. Report it with a cutoff, like MRR@10, so anything below rank 10 counts as zero. Teams often track a few of these at once; Spotify used recall@1, recall@30 and MRR@30 together.
Further reading
- The TREC-8 Question Answering Track Report, Ellen Voorhees (NIST), 2000. Where MRR was defined for question answering, with the reasons and the weak spots. It's a scanned PDF, so you can't search it.
- Evaluation Measures in Information Retrieval, Laura Carnevali (Pinecone), 2023. The worked example with Python code, next to recall and the other common metrics.