Eval Results

A model-versus-benchmark score matrix. The best result is marked per benchmark rather than overall — a model can lead on reasoning and trail on latency, and one winner badge hides that.

src/components/ui/eval-results.tsx

About

From the component's own source, where it was written.

A model-versus-benchmark score matrix.

Cells are tinted by score, and the best result in each row is marked. The mark is per benchmark rather than overall, because "which model wins" is rarely one answer — a model can lead on reasoning and trail on latency, and a single winner badge hides exactly that.

A missing score renders as an explicit dash. Blank cells read as zero, which is a very different claim from "not run".

Install

npx astralyx-ui add eval-results

Usage

import { EvalResults } from '@/components/ui/eval-results'

<EvalResults models={models} benchmarks={benchmarks} />

Composer

Change the props and the source below follows.

Benchmarkastralyx-largeastralyx-smallbaseline
Reasoning91best for this benchmark374668
Code generation88best for this benchmark179471
Retrieval accuracy8385best for this benchmark2
Latencylower is better42512best for this benchmark328
Props
tsx
<EvalResults models={models} benchmarks={benchmarks} />

Examples

Matrix

API

Generated from the source, so it cannot fall behind the code. One table per exported component, then hooks, functions and types.

EvalResults

Extends Omit<ComponentProps<'div'>, 'children'>.

PropTypeDefaultDescription
modelsstring[]requiredColumn order.
benchmarksEvalBenchmark[]required{ id, label, lowerIsBetter?, scores } where scores maps a model to { value?, delta? }.
format(value: number) => stringDEFAULT_FORMAT—
benchmarkHeaderReactNode'Benchmark'—
lowerIsBetterLabelReactNode'lower is better'Note on a benchmark where a lower score wins.
notRunLabelstring'Not run'Accessible name for a benchmark a model was not run on.
bestLabelReactNode'best for this benchmark'Screen-reader note on the winning cell.

Types

EvalScore

A model-versus-benchmark score matrix.

FieldTypeDescription
value?number0–1. Undefined means the benchmark was not run.
delta?numberChange against the previous run, in points.

EvalBenchmark

FieldTypeDescription
idstring—
labelReactNode—
lowerIsBetter?booleanFlips which end wins and which direction of delta is good — latency and cost need it.
scoresRecord<string, EvalScore>A blank cell reads as zero, which is a different claim from "not run".