← Back to article

Equation 14 · Naive, Graph, and Agentic: A Systems Comparison of RAG Architectures

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

the smoothing constant.

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

The two retrievers fail in different directions, which is the entire justification for running both. Lexical retrieval, the BM25 family, scores documents by term overlap and fails on vocabulary mismatch: a query about “cannot log in” scores nothing against a document that says “authentication failure”. Dense retrieval, the family Karpukhin and colleagues established with a dual-encoder trained on question-passage pairs, embeds query and passage into a shared vector space and fails on precision, losing rare identifiers — part numbers, version strings, error codes — that carry little weight in a learned embedding but enormous discriminative value lexically; their dense retriever nonetheless…
Read the full surrounding passage
The two retrievers fail in different directions, which is the entire justification for running both. Lexical retrieval, the BM25 family, scores documents by term overlap and fails on vocabulary mismatch: a query about “cannot log in” scores nothing against a document that says “authentication failure”. Dense retrieval, the family Karpukhin and colleagues established with a dual-encoder trained on question-passage pairs, embeds query and passage into a shared vector space and fails on precision, losing rare identifiers — part numbers, version strings, error codes — that carry little weight in a learned embedding but enormous discriminative value lexically; their dense retriever nonetheless reported nine to nineteen percentage points of absolute improvement in top-20 retrieval accuracy over a BM25 baseline on open-domain question answering, evidence that neither family dominates the other in general [ 2 ] . Fusing the two recovers most of each one’s strength. Reciprocal rank fusion, which Cormack and colleagues introduced and showed outperforming both individual rankers and a Condorcet-style combination, ignores raw scores entirely and combines rank positions across retrievers R with a smoothing constant k , RRF(d)=∑r∈R1k+r(d)\mathrm{RRF}(d) = \sum_{r \in R} \frac{1}{k + r(d)}. sidestepping the problem that a BM25 score and a cosine similarity are not directly comparable quantities [ 3 ] . A reranking stage — typically a cross-encoder scoring each retrieved candidate jointly with the query — can then sit downstream of the fused list and reorder it more precisely than either upstream retriever could alone.

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 Naive, Graph, and Agentic: A Systems Comparison of RAG Architectures

See this formula across 3 published contexts →

Browse the mathematical compendium →