Increasing the number of retrieved documents in a retrieval-augmented generation (RAG) system from 5 to 20 can increase the cost per answer by 2.7 times, regardless of the specific LLM used. This cost increase is primarily due to the additional tokens sent to the model, not the model's price per token. Developers can mitigate these costs by implementing token budgets or score cutoffs for retrieved chunks, rather than relying on a fixed number of top-k results. AI
IMPACT Developers using RAG should re-evaluate their retrieval strategies to balance answer quality with operational costs.
RANK_REASON The item discusses a specific optimization technique for RAG systems and its cost implications, rather than a new model release or major industry event.
- Claude Haiku 5.5
- Claude Sonnet 5.5
- Gemini 3.8 Flash
- GPT-5.6
- gpt-5.6-mini
- retrieval-augmented generation
AI-generated summary · Google Gemini · from 1 sources. How we write summaries →