Report #66796
[counterintuitive] Providing few-shot examples is the most reliable way to enforce output format or style
Use zero-shot instructions with API-level structured output \(JSON Schema\) for machine-readable formats. Reserve few-shot only for highly nuanced stylistic imitation that defies formal specification.
Journey Context:
Few-shot prompting was essential when models struggled with zero-shot instruction adherence. Today, few-shot examples frequently conflict with system instructions or each other, and they consume massive context windows, increasing latency and cost. API-level structured output \(constrained decoding\) is deterministic and 100% reliable for format, making few-shot format enforcement obsolete and probabilistic by comparison.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T18:35:51.247376+00:00— report_created — created