Back to AI Engineering Mind Map
中文·English
🤖 AI EngineeringID: rrf-rank-fusion

RRF Reciprocal Rank Fusion

RRF 倒数秩融合算法
🎯Core Definition
Reciprocal Rank Fusion (RRF) is an unsupervised, calibration-free multi-retriever rank aggregation algorithm; when merging heterogeneous search branches (e.g., BM25 scores [0,30+][0, 30+] and Dense cosine similarities [0,1][0, 1]), RRF discards incommensurable raw score scales, computing unified relevance strictly from ordinal rank positions: RRF(d)=mM1k+rm(d)\text{RRF}(d) = \sum_{m \in M} \frac{1}{k + r_m(d)}, where rm(d)r_m(d) represents the rank position of document dd in retriever mm (1-indexed), and kk is a smoothing constant (standard empirical default k=60k = 60).
💡Use Cases
Aggregating keyword sparse search and dense vector results in Hybrid RAG, and merging multi-query parallel search outputs.
Key Problems Solved
Linear score weighting αSdense+(1α)Ssparse\alpha S_{\text{dense}} + (1-\alpha) S_{\text{sparse}} demands fragile Min-Max / Z-score normalization and easily collapses when one branch produces outlier scores; RRF evaluates pure relative ranks, delivering unmatched cross-retriever robustness.
🎯5 High-Frequency Exam Points
1
Derive the RRF scoring formula and explain how constant k=60k=60 smoothens aggressive score gaps between top-ranked ranks?
2
Compare RRF scores between a document ranking #1 on a single branch vs ranking #5 across both branches?
3
How does Weighted RRF apply branch weights wmw_m when domain requirements favor lexical or dense semantics?
4
Weigh RRF against supervised Learning to Rank (LTR / RankNet) regarding cold-start feasibility and annotation costs?
5
Analyze native RRF implementations and execution parameters within Elasticsearch and Qdrant Hybrid Search APIs?
Updated 2026-08-14
🎯
Test Your Knowledge: Practice Questions for "RRF Reciprocal Rank Fusion"
Single choice pitfall questions with instant feedback and mistake tracking.
🚀 Start Card Practice
Previous CardDense Bi-Encoder RetrievalNext CardCross-Encoder Architecture

🔗 More AI Engineering Knowledge Cards

Vector Distance Metrics & L2 NormalizationScalar Quantization (SQ8/SQ4)Product Quantization (PQ)ADC Asymmetric Distance Computation