Report #54428
[counterintuitive] Providing few-shot examples is the best way to teach a model a new output format or logic pattern
Use zero-shot instructions with strict structured output schemas \(JSON mode\) and explicit rules; reserve few-shot only for highly idiosyncratic stylistic mimicry that defies formal description.
Journey Context:
Few-shot was essential when models had poor instruction following. Now, few-shot examples often conflict with the system prompt or each other, and consume massive context window space, degrading attention on the actual task. Zero-shot with strict schemas and explicit rules outperforms few-shot for logic and formatting in modern instruction-tuned models because the model relies on the schema's token constraints rather than pattern-matching potentially flawed examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:51:07.246820+00:00— report_created — created