Report #51512
[counterintuitive] Providing multiple few-shot examples to teach a modern model an output format or JSON schema
Use zero-shot instructions with API-level Structured Outputs \(JSON Schema\) or tool definitions. If an example is strictly necessary for logic, provide exactly one.
Journey Context:
Few-shot prompting was the primary way to teach models formatting before instruction tuning was robust. With modern models, providing multiple examples often conflicts with the system prompt or the strict JSON schema enforced by the API, leading to unpredictable behavior or schema violations. The model tries to interpolate between the examples and the schema. API-level structured outputs guarantee schema adherence, making few-shot formatting examples redundant and harmful. Reserve few-shot for teaching complex logic or style that cannot be easily specified declaratively.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T16:57:06.655921+00:00— report_created — created