Skip to content
Talk to our solutions team

AI Evals Overview

AI Evals scores a product’s AI output against a golden set: cases whose expected answers a person checked. Each field of an answer is checked by a scorer, every check is kept with what was expected, what came back and why they differ, and each eval ends in a verdict: pass, pass with warnings, or fail.

Evals are tests. They live in the product’s tests folder, run with kis test, are kept like any other test run, and reach the Studio, where runs are compared, golden sets are approved and a release can require its evals to pass.

PathHolds
tests/evals/<file>.yamlAn eval file: a document whose only key is evals:, a map of evals by name
tests/evals/golden/<name>/golden.yamlA golden set’s description
tests/evals/golden/<name>/<cases>.jsonlThe golden set’s cases, one JSON object a line

An eval’s ref is tests/evals/<file>.yaml#<name>. The Studio lists each eval as a test case under that ref. A plain kis test run leaves eval files and golden sets alone.

tests/evals/support.yaml
evals:
triage:
title: Ticket triage
scores: ticket_triage # what it scores: a feature, a flow, a prompt
golden: tickets # tests/evals/golden/tickets/
scorers:
- {field: priority, kind: equals, fails: true}
- {field: tags, kind: set_overlap, min: 0.5}
- {field: summary, kind: reference_semantic}
fail_on: fail
thresholds:
pass_rate: {min: 0.95}
verifies: [SUP-REQ-12] # requirements it verifies
tests/evals/golden/tickets/golden.yaml
golden:
title: Support tickets
source: synthetic
case: Ticket # what a case is called on the screens
cases: cases.jsonl
{"id": "T-1001", "input": {"subject": "Card declined", "body": "..."}, "expected": {"priority": "high", "tags": ["billing"], "summary": "Card payment declined at checkout."}}

See Eval files and scorers for every key and scorer kind.

HowCommand
talos runs itThe eval has a run: block: one test step (an HTTP call, a CLI command, a script) made for each golden case. What the step captures is the answer, and the eval’s scorers check it.kis test eval run
A harness reports itA harness that runs the product’s AI scores the answers itself and writes a talos.eval/v1 report. talos judges the report against the eval file and keeps it.kis test eval send <report.json>

Either way the result is an eval run: a test run of type eval, one test per eval, its result and every check. Judges and semantic scorers call a model through an OpenAI-compatible endpoint such as the AI gateway. See CLI and report format.

VerdictWhen
failA threshold is not met; or, under fail_on: fail (the default), a check failed; or, under fail_on: any, a check failed or warned
warn (pass with warnings)No condition above, and a check warned, or failed under fail_on: none
passEvery check passed and every threshold is met

A check that does not pass fails when its scorer sets fails: true, and warns otherwise. pass_rate, the share of checks that passed, is always measured, so a threshold can bound it.

Eval runs sent to the Studio (--store studio) appear under Quality → AI Evals:

  • Evals: each eval with its golden set, last verdict, trend and last run.
  • Runs: each run with its verdict, provider profile and model, branch and commit; a run opens to its checks by case, with expected, actual, difference, reason and evidence, and a failed check can be filed as a bug.
  • Golden sets: each set’s versions. A version scores only after a person makes it active, confirming the expected answers were checked by a person.
  • Compare: two runs of one eval side by side, newly failing and newly passing.

A release can require its AI evals to pass: each eval at the commits it ships must have passed there on an active golden-set version. See Running AI evals.

ItemValue
Filestests/evals/ in the product repository
Validationkis spec checks eval files and golden.yaml
CLIkis test eval run, kis test eval send
Resultskept with --store like any test run; the Studio’s Quality → AI Evals
Judge and embedding modelsan OpenAI-compatible endpoint, such as the AI gateway

Continue with: