Configure an evaluator
An evaluator scores a workflow response against a rule or a model-based assessment. Choose the method that measures the behavior you need to check.
Before you start
Write down the behavior you want to measure and prepare at least one known good and one known bad response. If the method compares against an expected answer, prepare a reviewed dataset. Separate factual correctness, completeness, and style into clear criteria rather than relying on a vague “good answer” rule.
Configure a rule evaluator
Open Evals → Evaluators → New evaluator and choose the evaluation method.

For exact comparisons, select Rule and Exact match.
Use Prefill from a dataset to load a case, then inspect its Input and Expected values.

Confirm that they represent the comparison you intend to perform.
Check matching and nonmatching outputs
Provide an output that matches the expected value and run the evaluator on the sample.

Inspect the score and decision to confirm how a match is handled.
Change the supplied output while keeping the expected value fixed and rerun the evaluator.

This shows how the rule handles a mismatch.
Save the evaluator
Create the evaluator after reviewing its behavior.

Confirm that the saved method and expected-output reference are correct.
Choose an LLM-based evaluator when needed
Review LLM judge templates when the task needs a model-based judgment.

Methods that require a reference answer cannot be used where production monitoring has no expected output.
Choose the method for your question
An exact label or fixed output
Rule → Exact match
Yes
Whether an answer addresses a stated requirement despite different wording
LLM judge → Meets criteria
No, when the prompt uses only input and output
Whether facts agree with an approved reference
LLM judge → Factuality
Yes
Whether a response meets a criterion that can be judged from the output
A reference-free LLM judge template, customized to the criterion
No
A reference-free judge can assess the information it receives. It cannot establish facts against a company policy that you have not supplied. Keep human-reviewed examples and inspect the judge's explanations before relying on its scores.
Build a reference-free answer-quality judge
Open Evals → Evaluators → New evaluator, choose LLM judge, and start from Meets criteria. Give it a name describing the behavior, such as “Answers every part of the request.”
Select the judge model and retain the
{{input}}and{{output}}fields in its prompt. Do not add{{expected_output}}when this evaluator will monitor production.Replace the criterion with a specific rule. For example: “The answer addresses every requested item. When information is missing, it identifies the missing information and asks a relevant follow-up instead of inventing an answer. A partial answer without that explanation fails.”
Select Pass / Fail for the rating. Pass is 100% and Fail is 0%. If you choose custom ratings later, define each label and its value so higher scores consistently mean better performance.
Test a known good and known bad output using the same input. For “Summarize the document and list the required next steps,” a response that includes both a summary and the required next steps should pass this completeness rule. A response that supplies only the summary without addressing next steps should fail. Use a document your reviewers know well for the actual test.
Inspect the returned label, score, and explanation. If the judge disagrees with your human review, clarify the criterion or examples and test again before saving. This example tests completeness, not whether the summary and next steps are factually correct.
Create the evaluator and reopen it to confirm the prompt, model, and rating. Use Run and inspect an experiment to score a reviewed dataset, or Production quality monitors to sample production responses.
LLM judges make model-based assessments. Review disagreements and periodically compare their decisions with human judgments, especially after changing the workflow or evaluator.
Important behavior
Exact Match checks whether the values match according to that rule. It does not judge whether two differently worded answers have the same meaning.
An evaluator that requires a reference answer needs that answer in each evaluated record. Choose a suitable method when production requests have no reference answer.
Last updated
Was this helpful?

