Skip to content
FrankX.AI
← Back to library

compare_and_contrast · v1.0.0

Compare and Contrast

Produce a structured comparison of two or more inputs across explicit dimensions.

cross-labanalyzestructured-output#comparison#structured-output#evaluation
# Examples — compare_and_contrast

## Example 1
**INPUT**: "Compare Claude Opus 4.7 and GPT-5 for long-context summarization."

**OUTPUT** (excerpt):
## ITEMS
- Claude Opus 4.7 (1M context)
- GPT-5
## COMPARISON
| Dimension | Claude Opus 4.7 | GPT-5 |
|---|---|---|
| Max context | 1M tokens | 400K tokens |
| Cost per 1M output | varies | varies |
| Structure adherence | high | high |
## SIMILARITIES
Both follow structured prompts reliably and resist common AI-slop phrases.
## DIFFERENCES
Claude Opus 4.7 sustains coherence over 1M tokens; GPT-5 begins to drift past 400K.
## RECOMMENDATION
For ≥500K-token inputs, Claude Opus 4.7. For shorter inputs, no clear winner — task-test both.