Report #39213
[counterintuitive] Using few-shot examples to teach a modern LLM a new output format or schema
Use zero-shot prompting with native structured output features \(JSON mode, Structured Outputs\) and explicit schema definitions.
Journey Context:
Few-shot prompting was essential for GPT-3 to understand intent and format. For modern models, few-shot examples often conflict with their instruction-following training or introduce edge cases from the examples themselves. With the advent of constrained decoding and structured outputs, defining the schema programmatically is strictly superior. Few-shot is still useful for stylistic mimicry, but zero-shot \+ schema is far more robust and reliable for logic and data formatting.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T20:17:34.398930+00:00— report_created — created