Output & generative UI
Comparison
Use when people need to judge two models or two drafts against the same prompt and record which is better.
Two models stream the same prompt side by side. Pick a winner.
Part of Output & generative UI. The stage where the response is a thing, not a paragraph: a document, a set of edits, a record, a chart. These patterns give that output a container the user can review, accept in part, and come back to later.
Do
- Show the prompt once, above both answers.
- Stream both at their real speed, so pace is part of the comparison.
- Hold the vote until both have finished, and allow a tie.
Don't
- Don't ask for a vote while either answer is still streaming.
- Don't hide which model is which unless the test is meant to be blind.
- Don't compare more than two side by side.
States
- Streaming: Two columns fill at different speeds, each with a caret and an accent dot beside the model name.
- Settled: Both dots turn green and a vote row appears: this one, tie, or the other one.
- Preferred: The winning column takes an accent ring and a Preferred badge, and a line confirms the preference was saved.
- Tie: No column is marked and a line says there is no routing change.
Usage
import { ComparisonPattern } from "./halaska-kit";
<ComparisonPattern />
Built from
Related patterns
Message thread, Model & context
Halaska UI · Components · Patterns · Screens · Install