Add a Reranker and a Hard Token Budget: Retrieve 20 Candidates, Send Only the Best 3

40-70% of injected context tokens Intermediate 2 min read

Vector similarity is approximate, so people inflate top-k to avoid missing the answer. A cheap reranking pass lets you fetch many candidates but send only the few that matter to the expensive LLM.

๐Ÿ”’ Pro tip ยท Intermediate

Unlock this tip โ€” and 37 more

This is one of 38 advanced, fact-checked tactics reserved for Pro. Get the full 60-tip library, a searchable archive, and a new tip every morning for $9/mo.

Prefer to browse? The 22 Beginner tips are free forever.