The Return of the Data Scientist — Interrupt 26

The Return of the Data Scientist

Shreya Shankar & Hamel Husain · ~18 min · Interrupt 26 — LangChain
Video thumbnail — The Return of the Data Scientist
⏱ ~18 min 🎤 Shreya Shankar & Hamel Husain 🏢 LangChain / Interrupt 🏷 Evals · LLM Judges · Data Science · Metrics · Agent Observability

1 The Harness is Data Science

▶ 0:00

Hamel opens by referencing the widely-circulated article about harnessing engineering — a team at OpenAI that used agents autonomously for months to build substantial internal software. The key insight most people miss: the "harness" isn't just specs and unit tests. It also contains logs, metrics, and traces — the entire observability stack.

Hamel's central thesis: the harness is data science, or at least a big part of it is. The skills required to keep agents on track — analyzing logs, designing metrics, validating model outputs — are classic data science competencies that the AI engineering community has been neglecting.

The harness also contains logs, metrics, and traces — the whole observability stack. The harness is data science.

2 ML Engineering Then vs AI Engineering Now

▶ 1:27

Four years ago in ML engineering and data science, practitioners would:

  • Examine data carefully — visualize it, understand distributions
  • Align predictions with human labels — rigorous validation against ground truth
  • Use the right tool for the task — deliberate model selection
  • Design metrics aligned with business goals — thoughtful metric engineering

AI engineering today has taken a step back. Now teams rely on "vibes" to know if they're doing the right thing. They ask the same model (or another model) whether it did a good job. Metric design is often skipped entirely — people use an LLM to grade on a 1-to-100 scale, or grab someone's metric package off the shelf without thinking.

AI engineering today feels like we've taken a bit of a step back. A lot of times, we're just using vibes to know if we're doing the right thing.

The data science pieces of AI engineering — evals and retrieval — have "died" so many times Hamel can't count. Engineers are often scared of what they don't understand, and these areas keep getting deprioritized.

3 Mistake 1: Generic Off-the-Shelf Metrics

▶ 3:28

Shreya takes over to walk through the five most common mistakes. The first: using generic or off-the-shelf metrics like "helpfulness," "hallucination," or "coherence" to measure agent accuracy.

While these sound important, they have two critical problems:

  • Ambiguity — "hallucination" means different things in different contexts. A medical app and a legal app have completely different definitions of what constitutes a hallucination
  • Non-transferability — different applications use different tools and data, making a shared evaluator meaningless

The Data Scientist Fix: Explore Your Data

Instead of reaching for off-the-shelf metrics, a data scientist would:

  1. Build custom interfaces — use tools like Codex, Claude Code, or Cursor to build annotation UIs
  2. Load up traces and read each message in each trace one by one
  3. Pretend you're the user — discuss with PMs what the actual mistakes are
  4. Write open notes about failures, then categorize them into bespoke failure modes

Example: in a real estate agent tour app, the bespoke failure modes were things like "hallucinating tour times" — something completely specific to that app that no generic metric would catch.

It's not just "look at your data and don't say or do anything about it." It's build your own interfaces and try to find failure modes at scale.

4 Mistake 2: Blindly Trusting LLM Judges

▶ 6:04

The second mistake is using LLM judges without validating the validators. Teams find a failure mode, then simply ask an LLM "how often is this occurring in my data?" without any notion of trust in the judge itself.

Common anti-pattern: asking an LLM to rate quality on a 1-to-5 scale, getting a histogram of mostly 1s and 5s, then trying to make business decisions from that. Those numbers are neither trustworthy nor actionable.

The Data Scientist Fix: Treat LLM Judges as Classifiers

A data scientist would recognize that an LLM judge is an imperfect classifier and apply standard ML validation techniques:

  • Partition labeled traces into train/dev/test splits — for each failure mode
  • Iterate on the prompt/model using the train and development sets
  • Validate on a held-out test set to ensure you're not overfitting the judge

Critically, LLM judging is often an imbalanced classification task — only a small fraction of traces actually exhibit a given failure. Don't just measure accuracy. Use metrics designed for imbalanced problems:

  • Precision and recall
  • False positives and false negatives
I'm not saying that using LLM judges is bad. I'm saying that using LLM judges blindly — without validating your validators — is bad.

5 Mistake 3: Bad Experimental Design — Synthetic Data

▶ 8:26

The third mistake covers bad experimental design, starting with synthetic data generation. Teams generate synthetic data by simply asking an LLM for "five generic questions" — and all the traces end up looking essentially the same. No diversity, no coverage of edge cases.

The Data Scientist Fix: Systematic Generation

Rather than letting the LLM drive the entire generation process, use LLMs for very small parts of it:

  1. Hypothesize which dimensions vary in the data users bring to the system
  2. Generate combinations of these dimensions systematically
  3. Review all synthetic data for quality — look at it, ensure good diversity

A practical exercise: examine real traces and identify at least three dimensions that vary across users — for example, user persona (novice vs expert), query complexity, topic domain. Use LLMs to generate values for each dimension, then take the cross product to produce synthetic data with proper coverage.

Use LLMs for very small parts of the data generation process. Hypothesize dimensions, generate combinations, and take the cross product.

6 Metric Design: Binary Over Scales

▶ 10:13

The second facet of bad experimental design is poor metric design. Teams commonly score things on a 1-to-5 or 1-to-100 scale, which is neither interpretable nor actionable.

The Data Scientist Fix: Binary Classification

Make the problem as least complex as possible:

  • Use binary classification — does this fail or not? Pass or fail. Not a 100-point scale
  • Align with business outcomes — metrics should drive decisions, not just fill dashboards
  • Make LLM judges narrow in scope — a judge for one specific failure mode, with a binary output
  • Label lots of data yourself to measure alignment

Shreya and Hamel emphasize that nobody writes a good LLM judge prompt on the first try. It's an iterative process — but binary framing dramatically reduces the search space for getting it right.

7 Mistake 4: Wrong People Labeling Data

▶ 11:23

A surprisingly common failure: teams outsource data labeling to AI engineers or developers who lack domain expertise. Unless you're building a coding app, the developers typically don't have the contextual knowledge to judge whether outputs are correct.

The Data Scientist Fix: Domain Expertise + Criteria Drift Awareness

  • Don't trust labels blindly — verify the labelers have genuine domain expertise
  • Look at the labels yourself — unexpected problems emerge that you can't anticipate
  • Watch for criteria drift — from the paper "Who Validates the Validators" (Shreya is a co-author), people don't actually know what they want until they look at some data
Criteria drift: people don't know what they want unless they look at some data. Specifying a rubric upfront without looking at examples is problematic.

The idea that you can define a rubric once and be done is a trap. Criteria evolve as humans encounter more examples — this is criteria drift, and it means you must force reviewers to continuously examine real data and refine their standards.

8 Mistake 5: Automating Too Much

▶ 13:03

The final major mistake: thinking "can't Claude just do it for me?"

The answer is no. LLMs can catch obvious errors and low-hanging fruit, but they can't read your mind. They don't know all the product nuances that can go wrong. The most important failures — the product failures that actually matter to users — require human context that you need to externalize explicitly.

There's a lot of context that you need to externalize to get to the more important things that are broken — especially the product failures happening with your users.

9 Other Common Pitfalls

▶ 13:45

Hamel rapid-fires through additional pitfalls they've seen across organizations:

  1. Misusing similarity scores — ROUGE, BLEU, and similar metrics appear on eval dashboards but are rarely meaningful for LLM applications. Do you actually want to measure text similarity?
  2. "Is this helpful?" as a judge prompt — generic, non-specific judge prompts that aren't tailored to the product's actual quality criteria
  3. Making annotators read raw JSON — all friction should be removed from data review. Build custom annotation interfaces that make reading data delightful
  4. Reporting uncalibrated scores — LLM judge scores without studying alignment against human judgment are meaningless
  5. Ignoring criteria drift — failing to account for how labeling standards evolve over time
  6. Overfitting judges to data — just like in ML, don't hill-climb against a single dataset. Set aside held-out data to verify generalization
  7. Ineffective data sampling — not thinking carefully about what data to evaluate
  8. Dashboard metrics without signal — every metric on a dashboard should earn its place with actual actionable signal

10 The Data Science Corollary

▶ 15:34

Hamel maps each AI engineering challenge back to a classical data science skill:

  • Error/data analysis → EDA (Exploratory Data Analysis) — finding patterns in traces, reading and analyzing them systematically
  • Good scoped metrics → Metric design — application-specific, aligned with real problems
  • LLM judge alignment → Model validation — ensuring the judge agrees with human judgment, just like validating any ML model
  • Test data quality → Data curation — systematic curation of evaluation datasets
  • Production monitoring → Observability — continuous monitoring of deployed systems
  • Iteration → Scientific mindset — experiment, measure, improve

The closing message is simple and powerful: "Always look at your data." The skills audit framework and slides are available via QR code shared at the talk.

If you want to come away with one thing from this talk: always look at your data.

🎯 Key Takeaways

🔑 Key Takeaways

  • The harness is data science — OpenAI's agent harness works because it includes logs, metrics, and traces — not just specs and unit tests
  • Vibes-based evaluation is a regression — AI engineering has abandoned rigorous ML practices like data visualization, metric alignment, and human label validation
  • Generic metrics are a trap — "helpfulness" and "hallucination" are too ambiguous; build bespoke failure modes from exploring your own traces
  • LLM judges need validation — treat them as imperfect classifiers with train/dev/test splits, and use precision/recall for imbalanced tasks
  • Synthetic data needs systematic design — identify varying dimensions, generate values per dimension, and take the cross product instead of asking an LLM for generic examples
  • Binary beats scales — pass/fail is more actionable and easier to validate than 1-to-100 scores
  • Domain experts must label data — developers without domain knowledge produce poor labels; never outsource understanding
  • Criteria drift is real — people don't know what they want until they look at data, so rubrics must evolve continuously
  • Automation has limits — LLMs can find obvious errors but miss the product-level failures that matter most to users
  • Build delightful annotation interfaces — remove all friction from data review; raw JSON kills engagement
  • Every dashboard metric must earn its place — uncalibrated LLM scores and meaningless similarity metrics waste attention
  • Always look at your data — the single most important practice, and the one most commonly skipped

🔗 Resources & Links

Timestamp Index

▶ 0:00 Introduction
▶ 0:38 What is the harness? Logs, metrics, traces
▶ 1:17 The harness is data science
▶ 1:27 How we got here: ML engineering 4 years ago
▶ 2:05 AI engineering today: vibes-based evaluation
▶ 2:37 What this talk covers: evals and common mistakes
▶ 3:28 Mistake 1: Generic or off-the-shelf metrics
▶ 4:47 Fix: Explore data, build custom interfaces
▶ 6:04 Mistake 2: Blindly trusting LLM judges
▶ 7:03 Fix: Treat LLM judges as ML classifiers
▶ 8:09 LLM judges as imbalanced classification
▶ 8:26 Mistake 3: Bad experimental design
▶ 9:04 Fix: Systematic synthetic data generation
▶ 10:13 Bad metric design: 1-to-100 scales
▶ 10:33 Fix: Binary classification problems
▶ 11:23 Mistake 4: Wrong people labeling data
▶ 12:00 Criteria drift
▶ 13:03 Mistake 5: Automating too much
▶ 13:45 Other pitfalls: ROUGE/BLEU, judge prompts, raw JSON
▶ 15:34 Data science corollary: EDA, metric design, validation
▶ 16:47 Summary: always look at your data
▶ 17:00 Where to get the slides