Evals

Your first eval

From a template to verdicts on live traffic: pick a template, adapt it, test it on a real trace, turn it on, and read the results.

This walks one eval end to end: Answers the question, a judge that scores whether each run's answer addresses what the user asked. It takes a few minutes, and every later page builds on the same moves.

You need an agent that is already sending traces, and a model provider in Settings → Models for the judge to run on.

Pick a template

Go to Assess → Evals and click New eval. The dialog lists every template by category, with three to reach for first under Start here. Search for what you want to catch: hallucination, tool errors, frustration, JSON.

The New eval dialog: a template search, the category list with counts, Start here with three suggested templates, and the Create eval menu.

Pick Answers the question.

Adapt it and create it

A second dialog opens filled in from the template: its name, description, the level it scores (Target), and its steps. Set two things:

  • Filters: leave empty to score every agent, or click + Filter and add run.agent_name Is support-bot to score one.
  • Judge model: the Provider and Model every judge step runs on, with your own key. The provider you used last is picked for you.
The create dialog for the Answers the question template, scrolled to its steps and the Judge model provider and model, with Create and open.

Click Create and open. A template starts switched off: nothing is scored until you turn it on.

Look at the step

The eval opens in the editor. Click the Relevance step to open its panel:

  • Settings holds the judge prompt. {{vars.input}} and {{vars.output}} are the run's question and answer, filled in on every run. See Variables.
  • Output says what the step returns (a number from 0 to 1) and where each range goes: 0.7 and up to the pass ending, the rest to the fail ending. Raise 0.7 if your answers must be exact.

Change what you like, then Save. Saving asks what changed and writes a new version, then offers Set as production so the new version is the one that scores traffic.

Test it on a real trace

Click Test in the toolbar. A drawer opens with your recent runs on the left. Pick one and click Run eval. You see each step, what it answered, where it went, and the verdict.

The Test drawer under the canvas: recent runs to pick from on the left, and Run eval with Pick a run on the right.

A test saves nothing and is never billed as eval usage, but a judge step really calls your provider, so it costs what one call costs. Try a few runs you know are good and a few you know are bad.

Turn it on

Open ⋯ → Settings in the editor and set Enabled to On, or flip the Enabled switch at the top of the eval's results. From now on every new run that matches the filters is scored. Past runs are not, unless you re-score history.

Read the results

Click the eval's name in the breadcrumb. An eval opens on Analysis: pass rate, verdicts over time, where runs end. Verdicts lists every result with the path it took; click one to see each step's answer.

If the eval got one wrong, click the thumbs-down on that row, say what it should have been and why. Lucid opens beside the page with that result ready to investigate. See Results and analysis.

Other ways to start

The Create eval menu in the New eval dialog has two more:

WhenWhat happens
Start from scratchYou know what you want to build.A blank create dialog: name, description, Target (Run, Span or Conversation, fixed once created), filters and sampling. The editor opens with a trigger, a Pass and a Fail ending, and Add step in the middle.
Create with LucidYou can say what you want but not how to build it.Lucid opens with Create an eval that ready to finish. It reads your traces, designs the eval, tries it, and creates it switched off. See Self-improving evals and Lucid.

An eval made from scratch can't be turned on until it has a first step in production.

The editor at a glance

The eval editor: the strip of step kinds on the left, the trigger Every run of chat at the top, steps joined by routes down to named pass and fail endings, Add step at the bottom, and ⋯, Test and Save in the toolbar.
Add stepAdds a step from a short list: Python, LLM judge, Decision model, Score spans (Score runs on a conversation eval) and Human review. Draw its lines after.
+ on a lineHover a line to see it. Inserts a step on that line.
The strip on the leftDrag a kind of step onto the canvas.
The dot under the triggerDrag it onto a step to make that step the first.
⋯Settings (on and off, name, filters, sampling, self-improving, re-scoring), Versions, and Structure (the eval as JSON).
TestOpens the test drawer. With a trace picked, it runs the whole eval.
SaveWrites the next version, with a note.

Each step opens a panel with two tabs, Settings and Output, and a ▶ that runs the eval up to that step on the trace picked in the test drawer.

On this page