Shipping a prompt change without evaluation is like shipping code without tests. LLM evals give you an AI judge that scores every change against a test set, so regressions are caught before they reach users. Here's how to build an AI evaluation pipeline that actually works.
The evaluator toolbox
Most teams start with a handful of evaluators. In Infere an evaluator is one of three kinds, and the kind decides what it costs:
- a model - a judge model reads the request and response against your criteria, at one model call per verdict. The criteria can ask for a yes/no answer ("Did the response answer the question?"), a score against a rubric, a named category, or a set of requirements.
- your code - Python checks the response: regex, JSON schema, length, required fields. No model call.
- a fixed rule - a built-in rule such as a length limit. No model call.
Eight templates cover the common cases - Follows the instructions, Cites accurately, Resists prompt injection, Meets disclaimer rules, No personal data in the response, Valid Markdown, Well-formed tool calls, Within a length limit - or write your own. Evaluators are .eml files in your repository, so every save is a version, and a version must be frozen before scoring runs and checks can use it.
Designing a good AI judge
The quality of your LLM evaluation depends on the judge prompt. A few principles:
- Be specific. "Reply YES if the output is correct, otherwise NO" is far more reliable than vague criteria.
- Give a rubric. For range scores, describe what a 0.2 looks like vs. a 0.9.
- Use evaluation steps. Break judgment into steps so the model reasons before scoring.
- Freeze the evaluator. A version must be frozen before scoring runs and checks can use it; editing it afterwards saves a new version, so your score baseline stays comparable.
From single evals to release checks
Individual scoring runs are useful, but the real win is wiring them into your workflow:
- Create a test set - take real requests and their stored responses from Logs, split them across train, dev and test (Even split is 70/15/15), and annotate each example Pass, Fail or Skip. Add an expected answer where an evaluator should compare against one.
- Start a scoring run - pick a frozen test set version and your evaluators, set trials per example (default 1), and see the totals before it starts. Train and dev examples are scored; test is held out.
- Compare runs - Compare with… another scoring run, then open Failures for the examples that failed.
- Gate releases - a check scores the prompt version on the test examples and compares each evaluator's pass rate with two bars: a minimum percentage and an allowed drop from what the key last passed with. Each gate - releases to dev, staging and prod, merges into main - is Required, Reported or Doesn't run.
- Watch live traffic - the Logs views (With a problem, Slow, Costly, Rated bad), Home tiles and Signals show where production differs from your test set; rate a bad request and add it to the test set.
LLM evaluation in practice
An AI evaluation platform turns this into a pipeline. In Infere, evaluators live in Git alongside your prompts as .eml files, run against frozen test set versions with reproducible results, and gate releases through checks:
# Evaluators are versioned as .eml files in your prompt repository
# A check gates a release, however it starts:
# 1. Score the new version's responses on the held-out test examples
# 2. Compare each evaluator with its minimum and allowed drop
# 3. Keep that key on what it holds if a required check fails
The goal isn't a perfect score - it's a score you can compare against, every time.
Next steps
Infere ships with eight evaluator templates across the three kinds - a model, your code, a fixed rule - ready to clone and adapt. Combine evals with Logs so the requests your test set does not cover yet become the next examples you score.
Quality is only half the equation - track what your evaluations cost to run with our guide to the true cost of agentic coding, which covers token consumption across parallel eval jobs and judge calls. For the full evaluation taxonomy, see our LLM evaluation guide.