Equation 14 · Naive, Graph, and Agentic: A Systems Comparison of RAG Architectures
What does this equation mean?
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.
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
Symbol d
d occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.
Symbol r
r occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.
Symbol R
R appears in the bound of this sum. The bound states where the repeated operation starts, ends, or which values it includes.
=
The expressions on both sides represent the same quantity under the stated assumptions.
See an illustrated explanation →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.
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.
Denominator: k + r(d)
The complete quantity below the fraction bar; it must be nonzero for this division.
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 , . 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.
Sources cited in the surrounding passage
- [2] Dense Passage Retrieval for Open-Domain Question Answering ↗
- [3] Reciprocal Rank Fusion Outperforms Condorcet and Individual Rank Learning Methods ↗
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