Tutorial 5: Optimize a grader with GEPA
Tutorial 5 — Optimize a grader with GEPA so its verdicts match your team's labels.
Time: ~45 minutes (most of which is GEPA running) Level: Intermediate You'll build: A grader tuned against ≥30 labels, with measurable agreement-rate lift.
What you'll learn
How to label a grader's runs for GEPA
How to run a GEPA optimization
How to interpret the before/after agreement rates
When to re-optimize
Prerequisites
Step 1: Label the grader's runs
In the workspace, open Graders, select your grader, and open its Optimization tab. For each of the grader's runs, set the verdict you expected (Pass or Fail). To label in bulk, import annotations.
Step 2: Run GEPA
Start the optimization from the Optimization tab with a budget (Light, Medium, or Heavy), or from the SDK:
GEPA explores rubric variations, runs each against your labels, picks the best.
Step 3: Read the result
Anything below 80% baseline agreement is noisy. GEPA usually closes the gap. If the result is better, apply it — the optimized rubric becomes a new version of the grader:
Step 4: Validate on held-out examples
If you have a held-out labeled set, run the optimized grader against it. If agreement is similar, you're not over-fitting; if much lower, expand your training set or check for label inconsistencies.
When to re-optimize
After labeling ≥30 more examples
When your team's quality bar changes
When the underlying grader model is upgraded
What's next
Last updated
Was this helpful?