Small 9B reranker beats bigger LLM on tool retrieval: 92% recall at half the cost
SanBaro20 · reddit · 2026-11-24
To help an agent pick the right API operation among hundreds (Stripe alone has 612), the author benchmarked tool retrieval: descriptions plus six model-written search hints, embedded with text-embedding-3-small, exact pgvector search for top 20, then a reranker picks 5. Metric: recall@5 on 50 plain requests, including a fresh set never tuned against.
- Vector order only: 84% / 80%
- gpt-6-luna reranking (2s budget): low reasoning blew the budget on 47/100 queries; reasoning off scored 88% / 90% at 1-2s
- Clef-flash, a 9B decision model on Workers AI: 92% / 92% at 0.5s, 60% cheaper
- Larger Clef: same recall at 6x the price; bge-reranker-base and text-embedding-3-large variants dropped
- Ceiling: 94% of fresh-set requests have a correct answer somewhere in the top 20
Conclusion: the remaining gap is candidates, not ranking. Disclosure: this is the search inside the author's product MCPAPI.
More from coding & agent
- Run local Llama models in .NET apps with Microsoft's new Llama on Windows tray app — mervenoyann · 2026-11-24
- GPT-5, Gemini 2.5 and Sonnet 4.5 retire soon: open-source guide to testing model migrations — dl_weekly · 2026-11-24
- Execs worried about company AI usage? Hooks are your best friend — jacob_posel · 2026-11-24
- ConnectWise backup app abuse hit 2,250+ M365 tenants; FBI urges review of every tenant — ccerrato147 · 2026-11-24
- Multi-model coding workflow: Gemini writes specs, Fable reviews, Opus 5.5 designs — EXM7777 · 2026-11-24
- Dev lets an AI agent fix Omarchy black-screen boot on Beelink SER9 Pro — lucasmeijer · 2026-11-24