RAG · 2026-09-10

To improve answers you bump retrieval from top-3 to top-30 chunks.

Answers get worse and slower.

  1. APush to top-100 - clearly more context is needed
  2. BReturn to a small top-k and add a rerank step to keep only the most relevant
  3. CRaise the temperature so the model reasons over more of it
  4. DRe-embed the whole corpus with a larger, newer embedding model, so the extra 27 chunks are relevant enough to keep them all

Answer: B

Return to a small top-k and add a rerank step to keep only the most relevant

Why

Dumping 30 chunks buries the few relevant ones in noise and distracts the model. Retrieve a small set, then rerank for precision - relevance beats volume.

More on this topic

More on Way of the Agent

Real situations from building agents - with the answer and why.

Solve a new one every day on the Path