Skip to content
Sign in
EvalsExperiment summaryMenu

Experiment summaryPro

Aggregate scores, improvements, regressions and cost for one experiment.

ProAverages with their change, the case split and cost.

Installation

$ pnpm dlx shadcn@latest add @chatcn-pro/experiment-summary

Usage

tsx
import { ExperimentSummary } from "@/components/ui/chatcn/pro/experiment-summary"

<ExperimentSummary name="v13 against v12" metrics={metrics} improved={23} unchanged={89} regressed={8} cost="$4.12" />

The improved, held and regressed split is a bar with the counts beside it in words, so the numbers carry it without the bar.

Examples

States

ProNo baseline yet, and a run that regressed.

Props

PropTypeNotes
name, detailstringHeading and one line
metricsSummaryMetric[]{ label, value, baseline?, kind?, higherIsBetter? }
improved, unchanged, regressednumberCase split
cost, costDeltastringPreformatted

Accessibility

  • Metrics are a description list; the bar is hidden from assistive tech.