Retrieval Fusion & Reciprocal Rank Fusion
Multiple retrievers can surface complementary evidence: dense semantic search, BM25, metadata filters, graph traversal or specialized domain indexes. Rank fusion combines their ranked lists.
Reciprocal Rank Fusion (RRF) gives each result a score based on its rank across lists rather than requiring incomparable raw similarity scores to share a scale.
function rrf(rank: number, k = 60) {
return 1 / (k + rank);
}
Practice
- Why can raw BM25 and cosine scores be hard to combine directly?
- What does RRF use instead?
- When would fusion outperform only dense search?
- Where does cross-encoder reranking fit after fusion?