LLM evals as CI means treating prompt edits, model upgrades, retrieval changes, tool changes, and safety-policy changes as testable delivery events. OpenAI recommends eval-driven development, writing scoped tests at every stage, and setting up continuous evaluation to run evals on every change (OpenAI).
This is necessary because LLM behavior can regress silently. A small prompt change, model snapshot change, chunking update, reranker adjustment, or tool schema edit can alter correctness, groundedness, refusal behavior, latency, cost, or safety.
Keep this in Adopt for production LLM and agent systems. Evals do not need to be perfect to be useful; even a small representative regression suite is better than shipping behavior changes blind.
Eval datasets can become stale. Production logs, user feedback, incidents, new attack patterns, and edge cases need to feed back into the suite.
LLM-as-judge is useful but not authoritative. OpenAI recommends calibrating automated scoring with human feedback and notes that no evaluation strategy is perfect (OpenAI).
CI cost and runtime can grow quickly. Teams need tiers: fast smoke evals on every pull request, broader regression suites on merge, and scheduled red-team or safety suites.
Metrics can incentivize the wrong behavior. Quality gates should include task-specific correctness, groundedness, refusal behavior, format validity, latency, and cost rather than a single aggregate score.
Adopt evals as CI for every production LLM or agent system. Start with golden datasets, deterministic assertions, schema checks, groundedness checks, and representative failure cases; then add LLM-as-judge and human review where rubrics are validated.
Set release gates for prompts, retrieval, tools, and model upgrades. Keep eval results, datasets, rubrics, and thresholds versioned with the application so regressions are visible and reviewable.