To improve answers you bump retrieval from top-3 to top-30 chunks.
Answers get worse and slower.
- APush to top-100 - clearly more context is needed
- BReturn to a small top-k and add a rerank step to keep only the most relevant
- CRaise the temperature so the model reasons over more of it
- 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.
- RAGA user asks your RAG assistant "how many open tickets do I have right now?" It retrieves stale doc snippets and guesses a number.
- RAGRetrieval returns a document that is accurate - for last year’s pricing.
- RAGYour policy assistant answers from company documents.
- RAGYour agent confidently invents facts about your internal docs.
More on Way of the Agent
- Course programThe first three modules are free: start in the browser or the app, no card needed.
- Library: guides, skills and promptsReady prompt templates, grouped into collections.
- AI ChroniclesSourced stories from the history of AI.
- ConceptsPlain-language explainers of agent engineering.
- Learn AI agentsApps and courses for learning AI agents, compared honestly.
Real situations from building agents - with the answer and why.
Solve a new one every day on the Path