Skip to content

Eval Suite

Eval cases for an agent or a prompt, run against several models or prompt versions: pass rate and how it moved, a case by target grid, regressions marked, and the detail behind every failure.

On this page

Examples

Installation

Installation is part of Pro

Pro components install from a licensed registry. The live preview stays open to everyone.

A suite of eval cases for an agent or a prompt, run against several models or prompt versions. The header has the pass rate across the shown columns and how it moved since the last run. Each cell is one case on one target: passed, failed, flaky (with how many of the last runs passed), errored or still running, with its score and latency. A case that passed last run and fails now is marked Regressed, with a dot on its row. Filter to failing cases or regressions only, and pick which targets show as columns.

Open a cell to see the input, the answer with the part that broke the assertion marked, the expected answer, a diff of the two, and the tokens, cost and latency. While a run is in progress, cells fill in as results arrive. Arrow keys move between cells, Enter opens one and Escape closes the panel. Screen readers hear each cell as a sentence, and progress is announced as results come in. With reduced motion, cells change without the sweep and fade.

Props

name
string
Suite name in the header.
cases
EvalCase[]
{ id, title, input, expected, assertion: "exact" | "contains" | "regex" | "json-schema" | "judge", tags? }.
targets
EvalTarget[]
Columns: { id, label, model?, note? }. The model name picks the logo; note is e.g. the prompt version.
results
EvalResult[]
{ caseId, targetId, status: "queued" | "running" | "pass" | "fail" | "flaky" | "error", score?, latencyMs?, output?, reason?, failedRange?, tokens?, costUsd?, history? }.
previous
EvalResult[]
The last run: gives the pass-rate delta and marks regressions (pass then, fail or error now).
lastRun
ReactNode
e.g. "12 min ago".
running / onRun
boolean / () => void
Defaultfalse
Shows Run suite; while running it shows progress and missing cells read as queued.
shown / defaultShown / onShownChange
string[]
Defaultall
Which targets show as columns (the model selector).
filter / defaultFilter / onFilterChange
"all" | "failing" | "regressions"
Default"all"
The filter.
selected / onSelectedChange
string | null
Defaultnull
The open cell, keyOf(caseId, targetId).

When to use

When to use

  • Checking a prompt or model change against a fixed set of cases before it ships, and seeing what broke.
  • Comparing models or prompt versions case by case, with score, latency and cost per answer.
  • A CI or nightly eval report where regressions (passed last time, fail now) have to stand out.

When not to use

  • Comparing a few answers to one prompt by eye, with a vote: use Model Arena.
  • Following one run step by step as it happens: use Trace Waterfall.
  • Spend against a budget or plan limit: use Usage Meter.

Using with AI

Use Copy page for AI above to give your assistant this page, Copy prompt under the install command to have it installed and wired to your data, or connect the Knowns UI MCP server and just ask:

  • Add the Knowns UI Eval Suite to my app and wire it to my own data.
  • I need checking a prompt or model change against a fixed set of cases before it ships, and seeing what broke. Set that up with the Knowns UI Eval Suite.
  • Which Eval Suite props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "eval-suite" }) and search_docs({ query: "eval suite" }). Pro props, full examples and source come back once your license key is in the MCP config.

Need help?

Stuck on Eval Suite, or found something off? We read every message.