How do you run AI evals in continuous integration?

Answered by Falk Gottlob · Reviewed · 1 min read

THE SHORT ANSWER

Treat prompts, model versions, and retrieval settings as code. On every pull request that touches them, run a small regression set several times per case, grade it with code checks and calibrated AI judges, and fail the job when a score crosses its threshold. Set thresholds from repeated runs on an unchanged branch. Run the full suite nightly. Dropbox ran about 150 queries per pull request with results in under 10 minutes. This site fails its own build when a post misses a reading-level gate.

A unit test checks one exact answer. An AI eval in your build pipeline checks a rate, with enough repeats to tell a real drop from noise.

The full build, with a trace schema, code graders, a judge calibration script, and a pipeline workflow, is in Evals for Engineers: Build the Harness That Runs on Every Change. How to keep a judge honest over time is in The Threshold Card: Tune the Judge Before You Trust the Score, and Date the Re-Tune. Why an agent should stop when its checker goes silent is in Shopify's Attack Agent Dies When Its Judge Goes Quiet. Most Agents Keep Going..

SOURCES

THE LONG VERSION

RELATED ANSWERS