Skip to content

Retrieval that is quietly wrong · 4 of 4

More context, worse answers

Step 1 · The pattern

The top few chunks go to the model

The retriever returns its top five chunks and the model answers from them. Usually the answer is there; sometimes the right chunk was ranked sixth and missed. (All numbers are illustrative.)

  • a question
  • right answer
  • missed

In short

More context, worse answers: how it works and how it breaks

Context windows are large, so a tempting fix for missed answers is to send the model everything retrieved: fifty chunks instead of five, so the answer is surely in there. Models do not use long contexts evenly. The 'Lost in the Middle' study found accuracy highest when the relevant information is at the beginning or end of the input and noticeably lower when it is in the middle, even for long-context models. Anthropic describes context as a limited attention budget whose recall falls as it fills. More chunks also mean more distracting near-misses, higher cost and slower answers. So stuffing the context can make answers worse while every request succeeds. Send fewer, better chunks: rerank and keep the best few, put the most relevant first, retrieve more only when the model needs it, and compact long conversations.

What this simulation simplifies

  • Misses are a fixed chance; the real effect depends on the model, task and position.
  • Fifty chunks always fit here; in practice they may also crowd out other context.

How this comes up in interviews

"How many retrieved chunks should you put in the prompt?"

Then they ask

  1. Why not all of them?
  2. What decides the order?
  3. What if the model needs more?

A strong answer covers

  • Long contexts are used unevenly; the middle is weakest.
  • Near-miss chunks distract; tokens cost money and time.
  • Rerank and keep the best few, most relevant first.
  • Just-in-time retrieval and compaction for long tasks.
  • Choose the number by measuring on your own eval set.

Points to cover, not a script. Say them in your own words and tie them to a system you have worked on.

On one page: the track cheat sheet.

Last reviewed: Research paper

Diagrams are our own simulations: the timings, rates and counts in them are illustrative, not measurements. Captions are original wording.