Retrieve a generous candidate set (for example 20 to 100) to protect recall, then rerank and keep a small set (often 3 to 10) that fits the token budget.
More context raises cost and latency and can hurt accuracy: models attend less to information in the middle of long prompts, so put the best chunks first (and last) and avoid padding with weak matches.
Tune k on evaluation data, and consider adaptive k based on score gaps or similarity thresholds.
Loading…