# What is reciprocal rank fusion (RRF)?

> Reciprocal rank fusion merges ranked result lists by rank instead of score. A document gets 1/(k + rank) in each list, and the sums set the final order.

Canonical: https://promptlyfound.com/glossary/reciprocal-rank-fusion
Updated: 2026-12-01

## Short answer

Reciprocal rank fusion is **a method that merges several ranked result lists into one by each document's rank, instead of its score**. A document gets 1/(k + rank) from each list it appears in, and the sum sets its final position. The constant k is commonly 60. Azure AI Search, Elasticsearch and OpenAI's file search use it to merge keyword and vector results.

## Key findings

- Reciprocal rank fusion was introduced in a two-page poster at SIGIR 2009. Its authors fixed k at 60 in a pilot study and did not change it during later validation. [1]
- In the paper's TREC experiments, RRF scored higher than Condorcet Fuse in every case and higher than the best individual system in all but one, where the best run had a human in the loop. [1]
- Azure AI Search uses RRF whenever two or more queries run in parallel, such as a full-text query plus a vector query. [2]
- Elasticsearch's RRF retriever needs two or more child retrievers and sets its rank constant to 60 by default. [3]

Reciprocal rank fusion (RRF) is the step that turns two or more result lists into one. In AI retrieval, it usually merges a keyword list and a vector list in [hybrid search](https://promptlyfound.com/glossary/hybrid-search).

## How does reciprocal rank fusion work?

RRF gives each document a score from its position in each list. The [2009 SIGIR paper that introduced RRF](https://dl.acm.org/doi/10.1145/1571941.1572114) defines the score of a document as the sum, over all rankings, of 1 / (k + r), where r is the document's rank in that ranking. The documents are then sorted by this score.[1]

An example with k = 60 shows the effect. A document ranked 1st in the keyword list and 3rd in the vector list scores 1/61 + 1/63, which is about 0.0323. A document ranked 2nd in the keyword list and missing from the vector list scores 1/62, about 0.0161. The document that both lists found comes first.

The [Elasticsearch documentation on RRF](https://www.elastic.co/docs/reference/elasticsearch/rest-apis/reciprocal-rank-fusion) shows the same formula. Its rank_constant sets k and defaults to 60. Its rank_window_size sets how many results from each list take part.[3]

## Why does RRF use ranks instead of scores?

Ranks can be compared across systems, and raw scores often cannot. Microsoft's page on [RRF scoring in Azure AI Search](https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking) shows the problem. A BM25 full-text score has no upper limit, while a vector score with cosine similarity falls between 0.333 and 1.00.[2] Elastic says RRF requires no tuning, and the relevance signals it combines do not have to be related to each other.[3]

The paper explains the formula. Highly ranked documents count more, but the weight of lower-ranked documents does not vanish, as it would with an exponential function. The constant k reduces the effect of high rankings from outlier systems.[1]

## Where is RRF used in AI search?

RRF merges the results of [BM25](https://promptlyfound.com/glossary/bm25) and vector search in several retrieval products. Azure AI Search uses it for hybrid queries and for queries with several vector parts. A full-text query plus one vector query counts as two executions. Semantic ranking, if used, runs after the RRF merge.[2] A [reranker](https://promptlyfound.com/glossary/reranking) of this kind reorders the fused list with a more precise model.

[OpenAI's retrieval guide](https://developers.openai.com/api/docs/guides/retrieval) lets developers tune how its reciprocal rank fusion balances semantic embedding matches against keyword matches, with one weight for each side.[4]

For a page, RRF rewards appearing in both lists. A passage that uses the exact terms of a query and also answers its meaning can rank in the keyword list and the vector list. [What is semantic search?](https://promptlyfound.com/ai-search/semantic-search) explains the two kinds of search that RRF combines.

## Sources

1. Reciprocal rank fusion outperforms Condorcet and individual rank learning methods. ACM SIGIR '09, 2009-07-19. https://dl.acm.org/doi/10.1145/1571941.1572114
2. Relevance scoring in hybrid search using Reciprocal Rank Fusion (RRF). Microsoft Learn. https://learn.microsoft.com/en-us/azure/search/hybrid-search-ranking
3. Reciprocal rank fusion. Elastic documentation. https://www.elastic.co/docs/reference/elasticsearch/rest-apis/reciprocal-rank-fusion
4. Retrieval. OpenAI API documentation. https://developers.openai.com/api/docs/guides/retrieval

---

This is a plain-text copy of https://promptlyfound.com/glossary/reciprocal-rank-fusion from Promptly Found. The web page is the canonical version and includes the charts.
