# Application AI Assistant: Response Compare

A shared prompt panel above two side by side response cards, each with a model badge, answer body, latency and token stats, and a prefer button.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/response-compare
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [AI Assistant](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)
- Created: 2026-07-10
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/response-compare.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-ai-assistant-response-compare
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, lucide-react, radix-ui
- shadcn/ui components: badge, button
- Installs to: `@/components/blocks/application-pro/ai-assistant/response-compare`

## About this block

Response Compare puts two model answers to the same prompt
side by side. The shared question sits in a quoted panel at
the top, and two response cards follow, one from a fast model
and one from a reasoning model. Each card carries a model
badge, the answer body as paragraphs and optional bullets, a
latency and token line, and a prefer button. A footer explains
that the preference is saved with the question type so similar
questions route to the chosen model by default.

Responses live in one array where bullets are optional, so a
terse answer and a fuller one share the same card shape. Showing
latency and tokens next to each answer is what turns a taste
call into a cost and speed tradeoff the user can reason about.

## When to use

Reach for this block on an evaluation screen or a model settings
page whenever a user picks between models for a task. Wire the
prefer button to your routing rules so the choice takes effect
on the next matching question.

A natural flow around it on an Application Pro page:

**Before**

- [Assistant chat panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant)

**After**

- [Settings pages](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

## What you can display

One strong use is the model preference picker. Other side by
side comparisons:

- **Prompt A/B test.** The same model with two prompts, judged
  on the answer each returns.
- **Draft variants.** Two generated drafts of a reply, with a
  keep button instead of a prefer button.
- **Before and after tuning.** A base answer beside a fine
  tuned one, with the same latency and token readout.

> Tip: keep both answers to the same real question; a rigged or
> uneven prompt makes the comparison meaningless.

## More in Application AI Assistant

- [Action Approval Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/action-approval-card)
- [Agent Run Trace](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/agent-run-trace)
- [Ai Usage Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/ai-usage-card)
- [Assistant Chat Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-chat-panel)
- [Assistant Empty State](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/assistant-empty-state)
- [Citations Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/citations-panel)
- [Context Sources Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/context-sources-panel)
- [Conversation History List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/conversation-history-list)
- [Feedback Thumbs Row](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/feedback-thumbs-row)
- [Guardrails Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/guardrails-panel)
- [Inline Suggestion Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/inline-suggestion-card)
- [Memory Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/memory-panel)
- [Model Picker Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/model-picker-card)
- [Prompt Composer](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-composer)
- [Prompt Library Grid](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/prompt-library-grid)
- [Scheduled Agents List](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/scheduled-agents-list)
- [Thread Summary Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/ai-assistant/thread-summary-card)
