Schema retrieval judged by recall alone misleads agent builders: author proposes per-token coverage and cost metrics
burkov · x · 2026-10-14
As AI agents access business data through repeated reasoning-and-query cycles, the schema information sent to the LLM becomes a major cost and performance bottleneck: large catalogs burn tokens, add latency, and distract the model with irrelevant tables and columns.
The author argues that schema-retrieval systems are commonly judged by recall alone, which makes sending the entire catalog look ideal despite being expensive and less effective in practice.
The article proposes three complementary evaluation measures:
- Useful schema coverage per token
- Total token use across a multi-step task
- Estimated cost per reasoning step
Takeaway: the metric mismatch can lead organizations to pick systems that cost more and work worse.
More from coding & agent
- Product idea: cloud Android VMs and home WiFi proxies to make agents look human — Darpinian · 2026-11-29
- 38 free agent skills distilled from shipping three live AI products — PawelHuryn · 2026-11-29
- Step 5: run evals on synthetic data pre-launch, watch real traces after — PawelHuryn · 2026-11-29
- Agent build costs: Messages API $0.003/msg vs Agent SDK $0.041 in real test — PawelHuryn · 2026-11-29
- Break your agent before attackers do: 6 tests mapped to OWASP LLM Top 10 — PawelHuryn · 2026-11-29
- Step 1: have Claude draft an agent card before building your embedded agent — PawelHuryn · 2026-11-29