← Back to article

Equation 4 · Ten Failure Modes That Define Production RAG

What does this equation mean?

kk

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

kk

Symbol k

k 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

Suppose retrieval succeeds outright — the correct passage is in the top- k , correctly chunked, sitting in the prompt. The system can still fail for a reason that has nothing to do with what was retrieved. Liu and colleagues varied the position of the one relevant document inside a long input and found performance highest when it sat at the very beginning or the very end, and markedly worse when it had to be used from the middle, a pattern that held even in models built specifically for long contexts [ 4 ] . This is a usage failure layered on top of a successful retrieval: the evidence is present in the context window, and the generator simply does not draw on it as reliably from the middle…
Read the full surrounding passage
Suppose retrieval succeeds outright — the correct passage is in the top- k , correctly chunked, sitting in the prompt. The system can still fail for a reason that has nothing to do with what was retrieved. Liu and colleagues varied the position of the one relevant document inside a long input and found performance highest when it sat at the very beginning or the very end, and markedly worse when it had to be used from the middle, a pattern that held even in models built specifically for long contexts [ 4 ] . This is a usage failure layered on top of a successful retrieval: the evidence is present in the context window, and the generator simply does not draw on it as reliably from the middle of a long list as from its edges. A retrieval pipeline that ranks strictly by descending relevance places its second- and third-best passages exactly where they are least likely to be used, which is the opposite of what the ranking was meant to accomplish.

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 Ten Failure Modes That Define Production RAG

Browse the mathematical compendium →