Skip to content

RAG Fusion

Definition

RAG Fusion is a technique in RAG where multiple search variants (different queries, different Retriever) are executed and the results are combined using fusion algorithms such as Reciprocal Rank Fusion (RRF).

Reciprocal Rank Fusion Algorithm

For each document, a cumulative score is calculated: score(d) = Σ 1 / (k + rank_i(d)) where rank_i(d) is the position of the document in the results of the i-th query, and k is a constant (usually 60).

Advantages

Advantage Description
Increased completeness Combining results from different queries
Robustness Reducing the impact of a failed query
Flexibility Combining Hybrid Search and Query Expansion
## See also
- RAG
- Hybrid Search
- Query Expansion
- Re-ranking
- RAG Pipeline
← All terms