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.
Where evals live
Section titled “Where evals live”| Path | Holds |
|---|---|
tests/evals/<file>.yaml | An eval file: a document whose only key is evals:, a map of evals by name |
tests/evals/golden/<name>/golden.yaml | A golden set’s description |
tests/evals/golden/<name>/<cases>.jsonl | The 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.
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 verifiesgolden: 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.
Two ways to run an eval
Section titled “Two ways to run an eval”| How | Command | |
|---|---|---|
| talos runs it | The 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 it | A 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.
Verdict
Section titled “Verdict”| Verdict | When |
|---|---|
| fail | A 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 |
| pass | Every 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.
In the Studio
Section titled “In the Studio”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.
Where things sit
Section titled “Where things sit”| Item | Value |
|---|---|
| Files | tests/evals/ in the product repository |
| Validation | kis spec checks eval files and golden.yaml |
| CLI | kis test eval run, kis test eval send |
| Results | kept with --store like any test run; the Studio’s Quality → AI Evals |
| Judge and embedding models | an OpenAI-compatible endpoint, such as the AI gateway |
Continue with:
- Eval files and scorers: every key, golden sets, and the scorer kinds
- CLI and report format:
kis test eval run,kis test eval sendand thetalos.eval/v1report - Running AI evals: CI, judge models, golden-set approval and release readiness
- Refusals and exit codes
- Keeping runs and the Studio: stores, masking and Studio keys