Experiment summaryPro
Aggregate scores, improvements, regressions and cost for one experiment.
On this page
ProAverages with their change, the case split and cost.
Installation
Usage
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
| Prop | Type | Notes |
|---|---|---|
name, detail | string | Heading and one line |
metrics | SummaryMetric[] | { label, value, baseline?, kind?, higherIsBetter? } |
improved, unchanged, regressed | number | Case split |
cost, costDelta | string | Preformatted |
Accessibility
- Metrics are a description list; the bar is hidden from assistive tech.