Video cover

Evidently AI · 6:06 · Watch on YouTube

Summary

An educational video on building evaluation datasets for LLM applications. It covers five sources of evaluation data (manual test cases, existing data, beta users, public benchmarks, and synthetic data), three ways to use LLM-generated synthetic data (plausible inputs, RAG ground truth, and input diversification), and a three-group structure for test cases: happy path, edge cases, and adversarial inputs. It closes with how top companies (Tesla, Google) invest heavily in manual eval work and practical advice for designing your own datasets.

Topics

  1. Sources of evaluation data
  2. Synthetic data: three ways to use it
  3. Structuring test cases: three groups
  4. What top companies do and how to design datasets
flowchart LR
    subgraph Sources["Where data comes from"]
        S1[Write it yourself]
        S2[Existing user data]
        S3[Beta test users]
        S4[Public benchmarks]
        S5[Synthetic data]
    end
    Sources --> DS[Evaluation dataset]
    DS --> G1[Happy path]
    DS --> G2[Edge cases]
    DS --> G3[Adversarial inputs]
    G1 & G2 & G3 --> LIVE["Living system: grow coverage<br/>as new issues appear"]

Key takeaways

  • Real user data beats invention: Wix built its evaluation dataset from existing customer service live chats, and Segment tested its LLM audience builder with queries users had built before. 0:35 0:56
  • Synthetic data over source documents yields a labeled ground truth dataset for RAG: an LLM extracts key points and generates questions whose answers are known because they come from the document itself. 2:01
  • Structure test cases into three groups — happy path (representative typical queries, checked for form and substance), edge cases (plausible-but-tricky inputs where "good" is a product decision), and adversarial inputs (critical for public-facing systems). 2:47 3:48 4:15
  • Evals are unavoidable manual work even at the top: Karpathy spent a third of his time on evals at Tesla, and Google search relies on human assessors following long labeling instructions. 4:47
  • The goal is not to ace all tests but to measurably see improvement over time; challenge any "99% accuracy" claim with "on which datasets?", and start small — 10 input/output cases is enough to begin. 5:31 5:16 5:46