Suites
A suite is one YAML file that names the system to call, the arms to compare, the cases to ask and the scorers that grade the answers.
The Builder writes this file for you, and Show YAML in the Builder shows it. A misspelled key is an error, never silently ignored.
A complete example
This suite compares two system prompts of a support bot on four cases. The third case should be declined, and the fourth is a conversation.
version: 1
suite:
id: support-bot
name: "Support bot: short against long prompt"
run:
repeats: 1
concurrency: 4
timeout_s: 60
systems:
bot:
adapter: http
config:
base_url: https://bot.example.com
endpoint: /api/chat
headers:
Authorization: "Bearer YOUR_KEY"
body:
message: "{{ case.input }}"
system: "{{ target.system_prompt }}"
history: "{{ history }}"
extract:
answer: reply.text
prompt_tokens: usage.prompt_tokens
completion_tokens: usage.completion_tokens
health: {url: /health, expect_status: 200}
targets:
- id: short
system_prompt: Answer in at most two sentences.
- id: long
system_prompt: Answer fully and give the reason for each step.
evaluations:
- id: support
system: bot
scorers:
- {use: contains}
- {use: contains_any}
- {use: regex}
- {use: declines}
- {use: latency_budget, weight: 0}
cases:
- id: refund_window
input: How long do I have to request a refund?
expect: {contains_all: ["30 days"]}
- id: order_number
input: What does an order number look like?
expect: {answer_regex: "[A-Z]{2}-[0-9]{6}"}
- id: other_customer
input: What is the email address on another customer's account?
expect: {declines: true}
- id: return_then_refund
turns:
- input: I want to return my shoes.
expect: {contains_any: ["return label", "returns page"]}
- input: How long until I get my money back?
expect: {contains_any: ["5 business days", "five business days"]}
gates:
- {id: no_required_failures, metric: required_failures, op: "==", value: 0}
- {id: long_floor, metric: score, scope: {target: long}, op: ">=", value: 0.8}
Top-level blocks
| Block | What it holds |
|---|---|
version | Always 1. |
suite | id (lowercase letters, digits, - and _), name, description, owner. Runs of the same id are grouped in the log. |
run | Defaults for the whole run, see below. |
systems | The systems to call, by name. See systems. |
targets | The arms. |
judges, rubrics | Model judges for the llm_rubric and judge_faithfulness scorers. |
evaluations | Each one sends its cases to one system and grades them with its scorers. |
gates | Pass or fail rules for the run. See gates. |
Run settings
| Field | Default | Meaning |
|---|---|---|
repeats | 1 | How often each case is asked of each arm. |
concurrency | 4 | Requests in flight at once. |
timeout_s | 120 | Seconds before an attempt counts as failed. |
seed | none | Gives every attempt a stable seed. openai_chat sends it; http sends it where the config writes {{ seed }}. |
environment_errors | none | Regular expressions for errors that come from your environment rather than your system, such as a rate limit. An attempt whose error matches one is left out of the means instead of scored 0. |
Arms
An arm is one configuration of the system. Change one thing between two arms and the comparison says what that one thing does.
| Field | Meaning |
|---|---|
id | The arm's name in results. |
model | The model name. |
system_prompt | The system prompt. |
params | Sampling settings, for example {temperature: 0, max_tokens: 1024}. |
tools | Built-in tools for openai_chat, see systems. |
tool_choice | Passed to the model API. Default auto. |
max_turns | Tool-calling rounds per case, 1 to 50. Default 6. |
api_base, api_key | Override the system's endpoint and key for this arm. |
extra_body | Extra fields for the request body. |
tags | Labels for your own use. |
openai_chat sends these fields itself.
The http adapter sends what its templates name, for example {{ target.system_prompt }} or {{ target.params.temperature }}.
Evaluations and cases
An evaluation has an id, a system, its scorers and its cases.
targets limits it to some arms, repeats overrides the run's, and description is free text.
| Case field | Meaning |
|---|---|
id | Unique within the evaluation. Results pair arms on it. |
input | The question. |
expect | What the scorers check, by key. See the table below. |
vars | Extra values for templates, as {{ vars.name }}. |
media | Images or audio, as {kind: image, url: https://…}. Only openai_chat sends them. |
weight | The case's weight in the arm's mean. Default 1. |
repeats | Overrides the evaluation's repeats for this case. |
timeout_s | Overrides the run's timeout for this case. |
tags | Labels for your own use. |
turns | Makes the case a conversation. See below. |
Scorers
A scorer entry is {use: name} with optional weight (default 1), required (default false) and with (the scorer's settings).
Each scorer reads one key from the case's expect.
A case without that key is reported as skipped for that scorer.
A scorer that needs something the system does not report, such as tool calls, is reported as unsupported and left out of the mean.
use | Reads from expect | Needs | Scores |
|---|---|---|---|
contains | contains_all: list of strings | answer | The share of the strings found. |
contains_any | contains_any: list of strings | answer | 1 when any of them appears. |
not_contains | not_contains: list of strings | answer | Fails the case when any of them appears. |
exact | exact: string | answer | 1 when the whole answer equals it. |
regex | answer_regex: pattern | answer | 1 when the pattern matches. with: {full: true} requires the whole answer to match. |
fuzzy | fuzzy: string | answer | How similar the answer is, 0 to 1. It passes at with: {min_ratio: 0.8}. |
numeric_tolerance | numeric: list of {value, tol, tol_kind, path, extract} | answer | The share of numbers within tolerance. tol_kind is abs, rel or pct. |
numeric_units | numeric_units: list of {value, unit, tolerance_percent} | answer | Numbers with units, converted: 210 GPa matches 210000 MPa. Default tolerance 1%. |
json_schema | json_schema: {schema, target} | structured output | 1 when the output validates against the JSON Schema. |
route_match | route: string or list | route | 1 when the system took that route. |
plan_flags | plan: map of booleans | structured output | The share of flags that match. |
citation_integrity | citations | structured output | Whether every claim cites a source, and every cited source exists. |
retrieval_ranking | ranking: {relevant, …} | structured output | How high the relevant document ranks. Default metric hit@1. |
retrieval_coverage | coverage: {required, depth, min_coverage} | structured output | The share of required documents retrieved. |
tool_match | tool_calls: {calls, mode, …} | tool calls | Whether the calls match. mode is exact, prefix, subsequence or set. |
max_tool_calls | nothing | tool calls | 1 when the case used at most with: {max: 10} calls. |
declines | declines | answer | See declines. |
values_confined | values_confined: list of {pattern, allowed, label} | answer | Fails the case when a value of that shape is not in allowed. |
llm_rubric | expected_answer (optional) | answer and a judge | A judge's grade against a rubric. See judges. |
judge_faithfulness | nothing | structured output and a judge | Whether each claim is supported by the source it cites. |
latency_budget | nothing | nothing | Time per answer against with: {max_ms, p50_ms, p95_ms}. Usually weight 0. |
code_exec | code_tests: list of assertions | answer | Runs the Python code in the answer against the assertions. Not part of the beta. |
contains, contains_any, not_contains and exact ignore case unless with: {case_sensitive: true}.
Case score
A case's score is the weighted mean of its scorers' scores.
A scorer with weight: 0 is measured and shown, but does not count.
The case scores 0 when any of these happens:
- A scorer with
required: truefails, errors or is unsupported. not_containsorvalues_confinedfinds a forbidden value.- The system calls a tool that
tool_matchordeclinesforbids.
Judges are not called for a case that already failed this way.
Declines
A decline case checks that the system refuses or defers instead of answering.
It is a case whose expect has declines.
expect | Passes when |
|---|---|
declines: true | The answer refuses or defers, and the system called no tool. |
declines: {must_not_call: [issue_refund]} | The answer refuses or defers, and the system did not call issue_refund. Other tools are allowed. |
declines: {patterns: ["our policy does not allow"]} | As true, with your own refusal phrases added. |
Refusals are recognised by phrasing, case-insensitive.
The built-in phrases are English: for a system that declines in another language, add its phrases with patterns.
with: {patterns: [...]} on the scorer replaces the built-in phrases.
declines: false is refused: a case the system should answer simply has no declines key.
The run page counts decline cases in their own section, Declined correctly.
Conversations
A case with turns is a conversation. Each turn is asked in order and scored against its own expect.
- id: return_then_refund
turns:
- input: I want to return my shoes.
expect: {contains_any: ["return label"]}
- input: How long until I get my money back?
expect: {contains_any: ["5 business days"]}
Only the http adapter runs conversations.
Each request can send the earlier turns as {{ history }}, a list of {role, content}, and the turn number as {{ turn }}.
conversation.carry copies values from one answer into the next request, see systems.
Repeats
Asking each case more than once shows how stable an arm is.
The case's repeats wins over the evaluation's, which wins over the run's.
Repeats under Advanced in the Run dialog replaces all of them for one run.
Every repeat counts toward your workspace's monthly cases.
Judges
llm_rubric asks a model to grade the answer against a rubric.
The judge is any model behind an OpenAI-compatible API.
judges:
grader:
provider: openai
model: gpt-4o-mini
api_key: YOUR_KEY
rubrics:
quality:
judge: grader
scale: [1, 5]
criteria:
- {id: correct, text: "States the policy the reference states.", weight: 3}
- {id: clear, text: "Says it in plain words."}
evaluations:
- id: explain
system: bot
scorers:
- {use: llm_rubric, with: {rubric: quality, min_score: 3}}
cases:
- id: refund_policy
input: Explain the refund policy.
expect: {expected_answer: "Refunds are possible within 30 days, under Orders > Refunds."}
| Setting | Meaning |
|---|---|
judges.<name> | model and api_key. For OpenAI itself set provider: openai; for any other endpoint set base_url. See keys. |
rubrics.<name> | The judge, the scale and weighted criteria. |
with: {rubric} | The rubric to grade with. |
with: {min_score} | Below this grade the answer counts as a failure. |
with: {reference} | The expect key with the good answer. Default expected_answer. |