← Back to article

Equation 8 · What Actually Happens Between a Query and an Answer in RAG

What does this equation mean?

RRF(d)=∑r∈R1k+r(d)\mathrm{RRF}(d) = \sum_{r \in R} \frac{1}{k + r(d)}

Read the formula alongside the article passage below. Each part has a deeper page with its role in the equation, the supporting passage and nearby citations.

Start with1
Divide byk + r(d)
This relates toRRF(d)
How to read the two sides of this formula. Follow the article passage for the meaning of each quantity.

This equation states an equality: the expressions on both sides have the same value under the article’s assumptions. Read the equation part by part below; each part has a contextual explanation and a link to its mathematical background.

Read it piece by piece

dd

Symbol d

d occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

Understand this part →

rr

Symbol r

r occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

Understand this part →

RR

Symbol R

R appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.

Understand this part →

kk

Symbol k

k occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.

Understand this part →

=

=

The expressions on both sides represent the same quantity under the stated assumptions.

Understand this part →

See an illustrated explanation →
fraction

fraction

Divide the expression above the line by the one below it.

Understand this part →

See an illustrated explanation →
addition

addition

Add the term after the plus sign to the term or group before it.

Understand this part →

subscript

subscript

The lower label selects a particular version, component, or indexed member of the quantity. For example, x₀ and xₜ can be values at different positions.

Understand this part →

r∈Rr \in R

Starting index or lower bound: r in R

This label says where the repeated addition, multiplication, or accumulation starts. Read its value or condition together with the article’s description of the index.

Understand this part →

11

Numerator: 1

The complete quantity above the fraction bar.

Understand this part →

k+r(d)k + r(d)

Denominator: k + r(d)

The complete quantity below the fraction bar; it must be nonzero for this division.

Understand this part →

How to interpret it

With a fixed numerator, increasing a nonzero denominator reduces the fraction. Read it with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

Reciprocal rank fusion avoids the currency problem by discarding scores altogether and combining rank positions instead. For a document d and a set of ranked result lists R , with r(d) the rank of d in a given list and a smoothing constant k : RRF(d)=∑r∈R1k+r(d)\mathrm{RRF}(d) = \sum_{r \in R} \frac{1}{k + r(d)}. Cormack, Clarke, and Buettcher introduced the method and reported that it consistently outperformed both the individual ranked lists and a Condorcet-style fusion baseline, with the specific virtue that it requires no score normalisation across systems with incompatible scoring functions [ 9 ] . That virtue is also its limitation: two documents ranked first in their respective lists count identically toward the fused score…
Read the full surrounding passage
Reciprocal rank fusion avoids the currency problem by discarding scores altogether and combining rank positions instead. For a document d and a set of ranked result lists R , with r(d) the rank of d in a given list and a smoothing constant k : RRF(d)=∑r∈R1k+r(d)\mathrm{RRF}(d) = \sum_{r \in R} \frac{1}{k + r(d)}. Cormack, Clarke, and Buettcher introduced the method and reported that it consistently outperformed both the individual ranked lists and a Condorcet-style fusion baseline, with the specific virtue that it requires no score normalisation across systems with incompatible scoring functions [ 9 ] . That virtue is also its limitation: two documents ranked first in their respective lists count identically toward the fused score regardless of how much more confidently one system ranked its top result than the other, because rank position is all the method sees.

Read the equation in its article →

Sources cited in the surrounding passage

These citations give research context. Read each source to check which claims it supports.

Return to What Actually Happens Between a Query and an Answer in RAG

See this formula across 3 published contexts →

Browse the mathematical compendium →