Problem
Business teams ask a small data team ad hoc questions faster than it can answer them. A text-to-SQL agent pointed at the raw warehouse fails not on SQL syntax but on missing business context. Benchmark-driven tuning stalls at about 80% accuracy, and one wrong answer in five means the agent cannot be shipped.
Example from the article: Wobby's agents served a logistics SaaS company with a 2.5-person data team, during the head of data's paternity leave.
Solution in brief
Replace raw tables with a semantic layer of metrics and dimensions, built with the help of a steward agent. Collect failures from a shared Slack channel as eval items. Cover deterministic behavior with CI tests and agent quality with evals scored by one weighted metric.
Questions this case answers
- How to make an LLM agent answer ad hoc questions over structured data correctly when business definitions live outside the schema and benchmark accuracy plateaus around 80%
- How to evaluate a tool-calling agent whose runs end in many different states, so that runs can be compared with one interpretable score
- How to make a text-to-SQL agent accurate on business metrics when benchmark scores stall at about 80%?
- How to get business users to adopt and trust an analytics agent?
Tools and methods
- Semantic layer (own build) — API plus a SQL compiler for several dialects
- Steward agent — proposes metrics and dimensions
- LLM-as-judge — offline scoring of trajectories
- Langfuse and Logfire — Langfuse for digging into LLM traces, Logfire for application metrics
- Streamlit — eval app run as a CI job
- Slack — group channel for adoption and error capture
Google or a one-time email code. No password.