How to Build Agents That Answer Data Questions

31 Jul 2026 · 27 min
27:19

In this talk, Hamel Husain and PhD researcher Shreya present the Data Agents Benchmark (DAB), a new benchmark for evaluating AI agents that answer enterprise data questions. They begin by motivating the need for data agents beyond code assistants, citing high demand from companies like Uber, OpenAI, Databricks, and Snowflake. A formative study with enterprise users uncovered four core challenges: (1) integrating data across multiple heterogeneous databases, (2) handling ill‑formatted join keys that require cleaning, (3) reasoning over unstructured text fields, and (4) applying domain‑specific business knowledge. DAB was built to reflect these challenges through a four‑step pipeline: (a) collecting open‑source datasets, (b) corrupting them in deterministic ways to induce the identified properties, (c) distributing the tables across a variety of open‑source databases (Postgres, Mongo, DuckDB, etc.), and (d) providing optional “hints” and semantic‑layer files that describe the corruptions. The benchmark contains 104 multi‑turn queries over 17 datasets, each query acting as an environment that can require hundreds of tool‑calls (SQL, Bash, Python scripts, data cleaning, etc.). The authors evaluated three frontier model providers—Claude Sonnet 4.6, GPT‑5.5, and Gemini 3.1 Pro—using their respective agent harnesses (Claude Code, React, etc.). Even the best model achieved only ~57 % pass‑at‑1 (five attempts) and ~70 % pass‑at‑5, indicating substantial room for improvement. A taxonomy of five failure modes was introduced: (1) pre‑planning abort, (2) incorrect high‑level plan, (3) wrong column/table selection, (4) faulty data‑processing code (e.g., bad regex for cleaning), and (5) runtime errors. Manual inspection revealed that incorrect plans and faulty implementations dominate. Key takeaways for practitioners include: (‑) prompt agents to inspect data before drafting a plan; (‑) supply semantic‑layer metadata or hints to improve cleaning and join decisions; (‑) consider building a memory store for recurring data‑quality issues; (‑) be wary of “hill‑climbing” submissions that cheat via hidden labels or web access. The speakers advise companies to conduct their own formative studies with analysts, create internal benchmarks using the same methodology, and evaluate agents iteratively. Future work aims to reduce inference cost, enable parallel exploration of multiple databases, and incorporate sub‑agents and memory mechanisms. The talk ends with a QR code linking to the DAB paper and open‑source repository.

Chapters

More from Hamel

0:31
youtube.com

Not Every Bug Needs an Eval

2d ago
47:59
youtube.com

Can Claude Build Your Evals?

2d ago
0:46
youtube.com

How to Get Your Team to Care About Evals

3d ago
12:47
youtube.com

7 Most Common AI Eval Mistakes (From Teaching 5K+ Engineers & PMs)

4d ago
40:01
youtube.com

How To Test AI Agents With Simulations

5d ago
0:43
youtube.com

Why Your LLM Judge Should Say Pass or Fail, Not 1 to 5

6d ago
0:39
youtube.com

Don't Just Slap a Chatbot on Your Product

1w ago
19:56
youtube.com

Is Opus 5.5 Better At Writing?

1w ago
1:22
youtube.com

How to Do Error Analysis When You Can't Look at the Data

1w ago
13:24
youtube.com

I Ranked Every AI Eval Concept From Worst to Best

1w ago
0:38
youtube.com

Why We Tell People to Read 100 Traces

1w ago
See all content