Equation 1 · Part 19 · What Actually Happens Between a Query and an Answer in RAG
Denominator: f(q_i, D) + k_1(1 - b + bdfrac|D|avgdl)
What this part means
The complete quantity below the fraction bar; it must be nonzero for this division.
Its job in the formula
f(, D) + occurs below the fraction bar. The quantity above the bar is divided by this expression; zero is excluded as a denominator.
Full expression→Denominator: f(q_i, D) + k_1(1 - b + bdfrac|D|avgdl)→Article meaning
The passage around this formula
Lexical retrieval scores a document by how well its terms overlap the query’s terms, weighted by how rare each term is and normalised for document length. The canonical scoring function, still the default first-stage ranker across a large share of production search two decades after its formulation, is BM25: . Robertson and Zaragoza’s account of the probabilistic relevance framework behind this formula is worth reading past the equation for one design choice it exposes: the term-frequency component saturates rather than growing linearly, so a document repeating a query term fifty times is scored only marginally higher than one repeating it five times, and the…
Learn the underlying idea
A fraction a/b means a divided by b. The top number is the numerator; the bottom number is the denominator, and it cannot be zero.
Open the illustrated fractions: division written vertically guide →
Sources cited in the surrounding passage
These citations provide research context; check each source for the exact claim it supports.