A performance incident occurs: latency spikes and token usage grows when users ask broad questions. The team suspects uncontrolled RAG context expansion. Which mitigation is most appropriate?

Answer

Implement context budgeting: cap the number of retrieved chunks and truncate/merge with a deterministic strategy before generation

Explanation

Broad questions can pull large contexts; a strict context budget controls prompt size and reduces token blowups. Truncation/merge strategies also help keep results stable.

Last reviewed: October 2026

Reviewed by FirstInTest Editorial Team

Report an error
QuestionBack to list