← All parts of this equation

Equation 8 · Part 1 · From BM25 to Agentic Retrieval: A History of Retrieval-Augmented Generation

Symbol D

score(D,Q)=∑qi∈QIDF(qi)⋅f(qi,D)⋅(k1+1)f(qi,D)+k1⋅(1−b+b⋅∣D∣avgdl),\mathrm{score}(D, Q) = \sum_{q_i \in Q} \mathrm{IDF}(q_i) \cdot \frac{f(q_i, D) \cdot (k_1 + 1)}{f(q_i, D) + k_1 \cdot \left(1 - b + b \cdot \dfrac{|D|}{\mathrm{avgdl}}\right)},
DD

What this part means

D is an argument of the function-like quantity on the left; its role is set by that function’s stated inputs.

Its job in the formula

D is an argument of the function-like quantity on the left; its role is set by that function’s stated inputs.

The passage around this formula

…converged on the specific scoring function that the field came to call BM25 — “Best Match 25,” after its position in a numbered sequence of variants the group had tried. Written in its now-standard form, a document D scores against a query Q as score(D,Q)=∑qi∈QIDF(qi)⋅f(qi,D)⋅(k1+1)f(qi,D)+k1⋅(1−b+b⋅∣D∣avgdl)\mathrm{score}(D, Q) = \sum_{q_i \in Q} \mathrm{IDF}(q_i) \cdot \frac{f(q_i, D) \cdot (k_1 + 1)}{f(q_i, D) + k_1 \cdot \left(1 - b + b \cdot \dfrac{|D|}{\mathrm{avgdl}}\right)}. where f(qiq_i, D) is the frequency of query term qiq_i in D , |D| is the document’s length, avgdl\mathrm{avgdl} is the average document length in the collection, and k1k_1 and b are tuned constants controlling term-frequency saturation and length…

Read this part in the article →

Learn the underlying idea

A variable is a named place for a value. Its letter is a local label: x can mean position in one formula and a data point in another.

Open the illustrated variables: a letter stands for a value guide →

See this notation across published equations →

Sources cited in the surrounding passage

These citations provide research context; check each source for the exact claim it supports.