Zenaique

Select every artifact a prompt PR should produce in the CI run

Multi-select·Easy·4.0 · 0·~1 min·Asked atJasperLightning AiRoblox
Attempt it
TL;DR

A prompt PR's CI run produces a delta table, a significance test, worst-case failing examples, and a cost-delta; it does not produce a model checkpoint and does not auto-approve.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

Picture a chef tweaking a recipe and putting it up for a taste test. The kitchen produces a tasting card showing the new dish next to the old one (delta table), a statistician note saying whether the difference is real or just luck (significance test), the plates the diners liked least (worst-N examples), and an updated grocery bill (cost delta). The kitchen does not bake a new chef, and the head chef still has to sign off; nothing ships just because the tasting card looked good. That tasting card is what eval-CI hands the reviewer.

Key concepts

Concept explanation~2 min read

Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.

Eval as CI is the LLMOps answer to 'how do I know this prompt change is safe to merge?' The mechanism mirrors a code PR: an automated job runs the change against a fixed test set, produces evidence, and posts that evidence into the PR for a human reviewer. The four artifacts that matter on the output side are a delta table, a significance test, a worst-N failing-examples list, and a cost-delta. The two artifacts on the wrong-answer list (model checkpoint, automated approval) reveal two of the most common confusions about what eval-CI is and what it is not.

This walkthrough breaks down each artifact, why it is necessary, the production shape of a typical eval-CI job, and how the gate interacts with human review.

Mental model: eval-CI produces an evidence package; the human reviewer makes the merge decision. The gate's job is to block obviously regressive merges and surface the data the reviewer needs for everything else.

The delta table and the significance test

Delta table

The delta table is the at-a-glance summary every reviewer reads first. Rows are metrics: faithfulness, answer relevance, context precision (for RAG), pairwise judge wins, refusal rate, toxicity rate, latency p50 and p99. Columns are old prompt, new prompt, absolute delta, percent delta. The table renders as Markdown in the PR comment, with red and green highlighting for regressions and improvements.

The metrics chosen reflect the product: a RAG assistant tracks groundedness and citation precision; a chatbot tracks judge wins on a held-out dialog set; an agent tracks tool-use correctness. The set is fixed for the lifetime of the prompt family so deltas are comparable across PRs.

Significance test

A delta on its own is meaningless without an error bar. A golden set of 500 examples and a judge with measurable variance can easily produce 2-point swings in either direction from pure noise. The significance test answers 'is this delta real?'

Three common choices:

  • Paired bootstrap on per-example score deltas. Resample with replacement, compute the delta on each resample, report the 95 percent CI of the delta.
  • Wilcoxon signed-rank when the metric is ordinal and the assumption of normality is shaky.
  • McNemar's test for binary outcomes (pass/fail, refusal/not).

The artifact in the PR comment is a CI or p-value next to each metric in the delta table. Reviewers learn to ignore deltas inside the CI and act on deltas outside it. Without this discipline, the team chases noise and the gate loses credibility.

Worst-N failing examples and cost-delta
Why the wrong answers are wrong
Production shape of an eval-CI job
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.

Real products, models, and research that use this idea.

  • Promptfoo's GitHub Action posts a delta table and PR comment by default and is widely used as the eval-CI runner.
  • DeepEval (Confident AI) ships a similar pattern with pytest-style test cases that fail on regression beyond thresholds.
Sign in to see more production examples.

What an interviewer would ask next. Try answering before peeking at the approach.

QHow would you design the worst-N failing examples view so reviewers actually look at it?
A

Surface each failure with the input, both outputs side by side, the judge score for each, and a one-line diff hint. Link to the full trace in LangSmith or Langfuse. Cap at 10 to 20 examples; longer lists get skipped.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Treating eval-CI as automated merge. CI gives the reviewer evidence; the human still approves the change, especially when the deltas are small.

Sign in to see all red flags and common mistakes.

60 second bullets to scan on the way to the call.

  • The four artifacts an eval-CI run should produce on a prompt PR

  • Why a model checkpoint is not an eval-CI artifact

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Why a circuit breaker around the primary LLM provider is more than a fancy retry
Flashcard·Medium