Problem
Thomson Reuters launched an AI data-analyst agent that lets non-technical users query data in natural language. Its tests only checked that queries ran and returned results in the expected format. That misses silent failures: queries that execute and look reasonable but return wrong numbers, which can then reach budgets or forecasts. Comparing with ground-truth SQL flags a failure without saying why it happened.
Example from the article: an analyst asked for conversion rates by device type for users who signed up in the last quarter. The agent filtered users by signup date but not conversions by date. The real rates were nearly 40% lower, and the analyst caught it only by cross-checking another report.
Solution in brief
Score the agent on a golden set with two scores: a rule-based match against ground-truth SQL and an LLM judge that also sees the agent's tool-call log. Trace every step with TruLens, then use the traces to find systematic causes and fix the toolkit and prompts.
Questions this case answers
- How to detect silent semantic errors in machine-generated queries that execute successfully and return plausible numbers
- How to evaluate an agent whose final output is correct only if every intermediate step respects business logic, using both rule-based and judge-based scores plus execution traces
- How to catch SQL that runs without errors but answers the wrong business question before an analyst uses the numbers?
- How to score a text-to-SQL agent when a rule-based comparison with ground-truth SQL says nothing about why it failed?
Tools and methods
- TruLens — traces agent steps and tool calls, hosts evaluation records
- AgentBench — benchmark with 360 SQL questions and ground-truth SQL
- Snowflake — warehouse for benchmark tables and queries
- Quasi-exact matching — rule-based check enforcing logical equivalence
- LLM-as-a-judge — scores business-intent alignment of the SQL
Google or a one-time email code. No password.