Skip to content

Eval Score

One 0 to 100 score for an AI eval, made of weighted sub-scores: a rounded gauge, a rating, a stepper between runs and a row for each sub-score. Point at a row or a segment to bring it forward.

On this page
Used for
  • An eval report for a model or an agent
  • A score made of weighted parts
  • Comparing the last few runs of one eval

Examples

Shape

Installation

npx knowns-ui@latest add eval-score
For Claude Code, Cursor or Codex: installs it and wires the props to your own data.

Props

title / description
ReactNode
The card header.
runs
{ label, date?, criteria }[]
Runs, oldest first; the latest shows first. Each criterion is { label, note?, score, max, color? }. The segment's length is its max.
run / defaultRun / onRunChange
number / number / (index) => void
Defaultlatest
Control the shown run from outside, or just listen.
ratings
{ min, label }[]
Default90 Excellent, 75 Good, 50 Fair, 0 Needs work
The label is the one with the highest min the score reaches.
shape
"arc" | "ring"
Default"arc"
A half circle or a full ring.
rounded
boolean
Defaulttrue
Round the ends of the segments.
size
number
Default320
The gauge's width in px, at most; it shrinks with the card.
onSelect
(index, criterion) => void
Makes the segments and rows pressable.

What it handles

  1. 01Turns the sub-scores into one 0 to 100 score: points earned over points available. A segment's length is its max, so the weights are the maxes.
  2. 02Draws each segment with rounded ends and a faint track in its own colour, the earned part filling it, on a half arc or a full ring.
  3. 03Writes the rating from the thresholds you pass: the label with the highest minimum the score reaches.
  4. 04Steps between runs with previous and next buttons; the arcs, bars and numbers ease to the new run together.
  5. 05Pointing at or focusing a row or a segment dims the others, like Goal rings. Every row is a button that says its score, its max and its note to screen readers.

States

First render
Nothing. The gauge paints its final state
none
Run changes
Segments, bars and the score ease to the new run
280ms, ease in-out
Rating changes
The label settles in with a 4px rise
180ms, ease out
Row or segment in focus
The others drop to low opacity
120ms, ease out
Reduced motion
Every change lands at once
0ms

Works with

When to use

When to use

  • The result of an eval run: one score from weighted parts, with the parts under it.
  • Showing whether the last run beat the one before.

When not to use

  • Goals in different units: rings read better: use Goal Rings.
  • A trend over many runs: use Chart.
  • One value against one limit: use Progress.

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 Score to my app and wire it to my own data.
  • I need the result of an eval run: one score from weighted parts, with the parts under it. Set that up with the Knowns UI Eval Score.
  • Which Eval Score props do I need for a minimal setup? Show me a short example.

With the server connected, your assistant calls get_component({ name: "eval-score" }) and search_docs({ query: "eval score" }).

Need help?

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