Report #41979
[counterintuitive] Providing multiple few-shot examples just to teach the model an output format
Use zero-shot instructions with native structured output features \(JSON mode, tool use\) or schema definitions
Journey Context:
Few-shot examples were essential for early models that struggled with zero-shot instruction following. Today, providing 3-5 examples just to demonstrate JSON format wastes context window and introduces risk: if an example has a subtle deviation, the model will amplify it. Native structured output features \(OpenAI Structured Outputs, Anthropic tool\_use\) enforce grammatical validity via constrained decoding at the token level, making few-shot formatting examples redundant and strictly inferior to API-level guarantees.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:56:13.636620+00:00— report_created — created