← Back to article

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

What does this equation mean?

bb

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 mathematical expression combines the displayed quantities; its precise role follows from the surrounding article text. 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

bb

Symbol b

b is a part of this expression. Its role is fixed by the surrounding article and by the operations shown in the formula.

Understand this part →

How to interpret it

Read this expression with the definitions, units, and assumptions supplied by the article.

What the article says around this equation

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 length-normalisation term b trades off penalising long documents against rewarding genuinely comprehensive ones [ 1 ] . BM25 has no notion of meaning. A query for “cannot authenticate” and a document about “login failure” share no terms and score zero, regardless of how obviously related a person would find them.

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

Browse the mathematical compendium →