1. Home
  2. LangChain

Apr 9

Why single-shot AI fails at data analytics

Izzy Miller

68 min → 2:10

Overview

AI engineer Izzy Miller explains how to build AI agents for data analytics that manage context, recover from errors, and reason through iterative discovery like human analysts.

3 things to know

Miller says working code can still give wrong answers

Unlike software coding with its clear pass or fail outcomes, Izzy Miller notes that a data agent can write working SQL that still returns the wrong business number due to company nuances.

More

Software coding often involves executing a defined spec with a binary pass/fail state.

▶ Watch at 7:49

Miller: One-and-done AI tools fail at real data work

Izzy Miller explains that early AI data tools failed by generating only a single query from a prompt, whereas real data analysis requires an ongoing, multi-step conversation of discovery.

More

This failed because real data analytics is an iterative process of discovery and "rabbit-holing," requiring conversational, multi-step capabilities.

▶ Watch at 2:48

Miller: Conflicting background info makes AI agents stall

AI reasoning is no longer the main limit, says Izzy Miller, because the real challenge is filtering background information so conflicting details do not make the agent stall or make things up.

More

AI model reasoning is no longer the primary limitation.

▶ Watch at 24:26

Also in this episode

Miller says data teams must fix AI by updating docs

Because data truth is subjective and agents will make mistakes, Izzy Miller says systems must let data teams review AI failures and update core documentation to keep training the tool.

More

Because data "truth" is subjective, agents will inevitably make mistakes.

▶ Watch at 38:35

Letting AI remember one user's rules worries Miller

Allowing an AI to remember an individual user's flawed definition of a business metric creates conflicting truths across a company, so Izzy Miller says shared, managed rules are needed for accuracy.

More

It creates conflicting truths across the organization; governed, systemic context is necessary to ensure accuracy.

▶ Watch at 28:20

Showing raw code fails to build trust, says Miller

Izzy Miller argues that simply showing generated SQL or Python code does not build trust with non-technical business users, who instead need clear proof that an answer matches company definitions.

More

Agents need stronger, governed ways to verify accuracy and prove confidence against organizational definitions.

▶ Watch at 1:04:12

Standard AI tests miss multi-step data work, says Miller

Traditional point-in-time AI tests fall short for data agents, says Izzy Miller, because good testing must simulate long tasks where an agent explores, hits errors, and fixes them over time.

More

Effective evaluation requires simulating long-horizon tasks where an agent must explore an environment, encounter errors, and self-correct over time.

▶ Watch at 46:17

Quotes

“we were very focused on this single shot type workflow, which I think is kind of in many ways uniquely cursed in data analytics because it is this iterative domain in which you get an answer and it's like, 'hmm, interesting. I want to follow up.'”

▶ Watch at 2:48

“it was increasingly feeling like we had this high horsepower beast driving 25 in a school zone. It's like the thing we are harnessing here needs more context, not just from this cell, but from the whole project.”

▶ Watch at 4:00

“A lot of the way that I code... you layout the plan up front and it executes... you're kind of either yes or no. And I think that when you do good data science... there are many decision points along the journey... in which you're not just saying 'good job, bad job,' but you're saying like, 'oh, that's interesting. Should we look at it this way?'”

▶ Watch at 7:49

8 more quotes

“we break our concept of context up into dynamic and static context... the capabilities bundle together tools, static context, prompts, also some weird esoteric finicky stuff like final turn behavior.”

▶ Watch at 14:11

“if you inject in a piece of conflicting context, it goes against some other information it has, it will spend 30 minutes pondering going 'wait, wait, but let me see, hmm actually' and enter this crazy sort of collapse mode.”

▶ Watch at 24:26

“I think that the concept of showing your work is not the right concept for data work in terms of citation and verifiability. I think it needs to be some stronger form of verification or confidence or accuracy.”

▶ Watch at 28:20

“memory, as users think about it, I think is a very user-level concept... I think that's less impactful and almost scary to data teams and admins who are worried that the exact opposite of what we just talked about might happen within a user's little memory”

▶ Watch at 38:35

“the core feedback loop of Hex improving today is driven by the data team. It's by users doing work, their work or sort of the exhaust of their work being surfaced to the data team in an interface that allows them to, you know, notice mistakes, improve the guides, the models, the warehouse context”

▶ Watch at 46:17

“as a general rule, most eval sets are bad. Unless they are being actively worked on.”

▶ Watch at 1:00:00

“the most interesting way to evaluate data agents and data work has to be long horizon.”

▶ Watch at 1:04:12

“the best person is someone who really cares about the problem that you're trying to solve.”

▶ Watch at 1:11:11

Full summary

Episode Overview

  • Explores the unique challenges of building AI agents for data analytics, contrasting them with software engineering agents due to the highly subjective and iterative nature of data discovery.
  • Traces the evolution of data AI from restrictive, single-shot query generation tools to complex, long-horizon agents that must actively manage context and recover from errors.
  • Emphasizes that the future of reliable enterprise AI relies on human-in-the-loop systems, robust context management, and prioritizing domain empathy over pure technical ML skills.

Key Concepts

  • The Limitation of Single-Shot Workflows: Early AI data tools relied on generating a single query from a prompt. This failed because real data analytics is an iterative process of discovery and "rabbit-holing," requiring conversational, multi-step capabilities.
  • Coding vs. Data Analytics Agents: Software coding often involves executing a defined spec with a binary pass/fail state. Data analytics is subjective; an agent might write perfectly valid SQL that still returns the wrong business metric due to organizational nuances.
  • Context Management as the Core Bottleneck: AI model reasoning is no longer the primary limitation. The main architectural challenge is dynamically retrieving and filtering context, as giving an agent too much or conflicting context causes it to stall or hallucinate.
  • The Problem with "Showing Your Work": Simply displaying the generated SQL or Python code does not build trust with non-technical business users. Agents need stronger, governed ways to verify accuracy and prove confidence against organizational definitions.
  • Human-in-the-Loop Observability: Because data "truth" is subjective, agents will inevitably make mistakes. Systems must allow data teams to review AI failures and update the core context (like semantic models or documentation) to continuously train the system.
  • The Danger of User-Level Memory: Allowing an AI to "remember" an individual user's potentially flawed definition of a metric is dangerous for enterprises. It creates conflicting truths across the organization; governed, systemic context is necessary to ensure accuracy.
  • Long-Horizon Evaluations: Traditional static, point-in-time AI benchmarks are inadequate for data agents. Effective evaluation requires simulating long-horizon tasks where an agent must explore an environment, encounter errors, and self-correct over time.

Quotes

  • At 0:02:48 - "we were very focused on this single shot type workflow, which I think is kind of in many ways uniquely cursed in data analytics because it is this iterative domain in which you get an answer and it's like, 'hmm, interesting. I want to follow up.'" - Explains why conversational, iterative agents are necessary for data tasks over simple code-generation tools.
  • At 0:04:00 - "it was increasingly feeling like we had this high horsepower beast driving 25 in a school zone. It's like the thing we are harnessing here needs more context, not just from this cell, but from the whole project." - Illustrates the turning point where model capabilities outpaced the restrictive UI, necessitating a broader context window.
  • At 0:07:49 - "A lot of the way that I code... you layout the plan up front and it executes... you're kind of either yes or no. And I think that when you do good data science... there are many decision points along the journey... in which you're not just saying 'good job, bad job,' but you're saying like, 'oh, that's interesting. Should we look at it this way?'" - Highlights the core difference between building coding agents and data agents.
  • At 0:14:11 - "we break our concept of context up into dynamic and static context... the capabilities bundle together tools, static context, prompts, also some weird esoteric finicky stuff like final turn behavior." - Provides insight into how complex agents are architected behind the scenes to manage context and capabilities.
  • At 0:24:26 - "if you inject in a piece of conflicting context, it goes against some other information it has, it will spend 30 minutes pondering going 'wait, wait, but let me see, hmm actually' and enter this crazy sort of collapse mode." - Demonstrates the fragility of LLMs when presented with contradictory information and the importance of clean context pipelines.
  • At 0:28:20 - "I think that the concept of showing your work is not the right concept for data work in terms of citation and verifiability. I think it needs to be some stronger form of verification or confidence or accuracy." - Explains why code generation alone doesn't solve the trust problem for business stakeholders.
  • At 0:38:35 - "memory, as users think about it, I think is a very user-level concept... I think that's less impactful and almost scary to data teams and admins who are worried that the exact opposite of what we just talked about might happen within a user's little memory" - Highlights the risk of localized AI memory overriding governed organizational truths.
  • At 0:46:17 - "the core feedback loop of Hex improving today is driven by the data team. It's by users doing work, their work or sort of the exhaust of their work being surfaced to the data team in an interface that allows them to, you know, notice mistakes, improve the guides, the models, the warehouse context" - Details the practical mechanism for continuous agent improvement in an enterprise setting.
  • At 1:00:00 - "as a general rule, most eval sets are bad. Unless they are being actively worked on." - Critiques the static nature of standard AI benchmarks and their inability to measure real-world performance accurately.
  • At 1:04:12 - "the most interesting way to evaluate data agents and data work has to be long horizon." - Points toward the future of agent evaluation, emphasizing the need to test how agents navigate complex, multi-step processes over time.
  • At 1:11:11 - "the best person is someone who really cares about the problem that you're trying to solve." - Summarizes the most important trait for modern AI engineers building product-focused agents.

Takeaways

  • Transition data tools away from single-shot generation features toward interfaces that support multi-turn, exploratory workflows.
  • Prevent LLM context collapse by consolidating tool access and using intermediate retrieval agents rather than overwhelming the model with thousands of options.
  • Implement observability systems that capture AI failures, allowing data teams to treat error exhaust as a continuous training loop for organizational semantic models.
  • Restrict user-level AI memory regarding business logic; centrally govern all metric definitions to prevent conflicting organizational truths.
  • Abandon static, single-turn benchmarks in favor of custom, long-horizon evaluations that test an agent's ability to iteratively fail and self-correct.
  • Hire AI engineers based on deep domain empathy and product intuition rather than solely indexing on pure machine learning expertise.

Watch the full episode 1 hr 8 min

Read along with the audio summary

An artificial intelligence agent can write valid code and still hand you the completely wrong business metric. In a podcast episode released on April 9, 2026, a builder working on the data platform Hex explores the unique challenges of creating AI agents for data analytics rather than software engineering. By the end of this summary, you will learn how to manage context, govern company definitions, and build data agents that your business users can actually trust.

Why single-shot data tools fail to deliver real insights.

Forcing a powerful AI model into a single prompt and response is like driving a high horsepower beast at twenty-five miles an hour in a school zone. Early data tools relied on generating a single query from one prompt, which failed because real data analytics is an iterative process of discovery and rabbit-holing. You get one answer, find it interesting, and immediately want to ask a follow-up question. Move your data tools away from single-shot generation features toward conversational interfaces that support multi-turn, exploratory workflows.

Why data analytics agents are harder to build than coding agents.

Software coding often has a simple binary pass or fail state, while data analytics is deeply subjective. When you build software, you lay out a defined specification up front, and the agent either executes it or fails. In data science, an agent can write valid SQL yet still return the wrong number because it missed subtle organizational nuances and decision points along the journey.

How to solve the new core bottleneck in AI architecture.

AI model reasoning is no longer the primary limitation, because the main architectural challenge now is how you dynamically retrieve and filter context. If you inject conflicting information or too much context into a large language model, the core technology behind modern AI, it can spend thirty minutes pondering the contradiction and enter a crazy collapse mode or hallucinate. Prevent this context collapse by consolidating tool access and using intermediate retrieval agents rather than overwhelming the model with thousands of options.

Why showing the code fails to build trust with business users.

Simply displaying the generated SQL or Python code does not make a non-technical stakeholder trust the numbers on their screen. Build stronger, governed ways for your agents to verify accuracy and prove confidence against official organizational definitions.

How to turn inevitable AI mistakes into a continuous training loop.

Because data truth is subjective, your agents will inevitably make mistakes, and that error exhaust is actually your best training tool. On the Hex platform, the core feedback loop is driven by surfacing the exhaust of user work to the data team so they can notice mistakes and improve the guides, semantic models, and warehouse context. Implement observability systems that capture AI failures, allowing your data team to continuously review errors and update the core documentation.

Why letting an AI remember individual user preferences is dangerous.

Allowing an AI to remember a single user's personal definition of a business metric is a scary prospect for enterprise data teams. If one person teaches the AI a flawed definition within their local memory, it creates conflicting truths across the entire organization. Restrict user-level AI memory regarding business logic, and centrally govern all metric definitions to ensure systemic accuracy.

How to test data agents for the real world.

As a general rule, most static, point-in-time evaluation sets are bad unless they are being actively worked on. Traditional single-turn benchmarks cannot measure how a data agent handles real discovery work. Abandon static benchmarks in favor of custom, long-horizon evaluations that simulate how an agent explores an environment, encounters errors, and self-corrects over time.

Building reliable enterprise data AI requires moving beyond simple code generation to governed, multi-turn systems, and hiring engineers with deep domain empathy rather than pure machine learning expertise. The best person is someone who really cares about the problem that you're trying to solve.

Related Episodes