Select enough evidence without flooding the answer stage
Context selection should preserve relevant facts, definitions and exceptions while excluding unrelated material. More text can increase processing cost and make important distinctions harder to use. Start from the question's evidence needs and test the assembled context, not just the number of retrieved passages. Different document types may need different treatment.
Worked example
Illustrative scenario; not a claim of measured client results.
A question about an exception to a policy may require both the standard rule and the exception conditions. Supplying ten unrelated sections while omitting the rule is worse than supplying two complete relevant passages. For a technical procedure, include the product version and prerequisites so the instructions are not applied to the wrong environment.
Checks, limitations and next decisions
If answers become vague or contradictory, inspect whether context contains competing versions or irrelevant passages. Reduce noise carefully and verify that critical qualifiers remain. Compare quality, latency and cost on the same evaluation set. Avoid a universal context-size target; the useful limit is determined by the workload, evidence structure and demonstrated behavior of the complete system.
A practical starting point
Work through these checks in order. Use the results to decide what needs to change in your own workflow.
- Measure how many passages are needed for representative questions.
- Remove duplicates and preserve useful source labels.
- Test complex questions that need multiple documents separately from simple lookups.
A mistake to avoid
Do not maximize context length simply because the model supports it.
How to check progress
Compare support accuracy, latency and cost at different context budgets.
Your action checklist
Use this checklist while reviewing your own setup. Checkmarks are temporary and stay in this open page.
For the wider decision process, read When retrieval is the right addition to an AI assistant.
Further reading
Official background resources for this topic. The workflow above is general guidance, not a guarantee of a particular result.
AI-assisted editorial content. Examples are illustrative, not client case studies. Read our editorial policy or report a correction.
