Report #47228
[counterintuitive] Using few-shot examples as the primary way to enforce an output format or teach a task
Use zero-shot instructions combined with native structured output schemas \(JSON mode\) to enforce formats. Reserve few-shot for demonstrating complex, nuanced logic that cannot be described algorithmically.
Journey Context:
Few-shot was essential for early GPT-3 to understand intent. With modern instruction-tuned models, few-shot examples often constrain the model to the specific style or errors of the examples, limiting its native capabilities. For formatting, native structured outputs \(JSON schema\) are 100% reliable, making few-shot format demonstrations redundant and fragile. Zero-shot allows the model to use its full learned distribution rather than anchoring to a few provided samples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T09:45:36.424953+00:00— report_created — created