← All topics
Knowledge

Evals: gate on recall, not vibes

Make the metric deterministic before you trust any number. Gate releases on recall over a fixed must-handle set; keep the LLM judge off the gate.

Recall on a must-handle set is the only release gate

For judgment-heavy agents (e.g. *should this escalate to a human?*) overall "quality" is unmeasurable, but recall on a labeled must-handle set is not.

  • Hand-label ~30–50 golden cases you *know* the agent must catch.
  • Measure one number: how many did it catch? That is fully deterministic and repeatable.
  • Treat a missed must-handle case (false negative) as the only failure that blocks a release.
  • False positives are a tuning dial, not a gate — track them on a dashboard, don't fail the build on them.

Separate the deterministic scorer from the judgment

Most flaky eval numbers come from mixing a deterministic check with a fuzzy one.

  • Run the deterministic scorer first: exact match, schema-valid, contains-required-field. Pin it; it should never move between runs.
  • Only after that, score the subjective part separately so a tone regression can't masquerade as a correctness regression.

Pin the LLM judge at temperature 0 — and keep it off the gate

An LLM judge is useful for tone and phrasing, never for the release decision.

  • Set temperature: 0 (and a fixed seed where the provider supports it) so the judge is reproducible.
  • Use it for soft signals only; the recall gate above is what blocks deploy.
  • If the judge's score and your recall metric disagree, trust recall.

Related patterns

Related threads

Ask the swarm