Report #55869
[counterintuitive] Providing few-shot examples to teach a model a specific JSON output schema
Use zero-shot prompting with native structured output enforcement \(JSON mode, tool schemas\) and explicit schema definitions.
Journey Context:
Few-shot was necessary when models struggled with zero-shot instruction following. Now, few-shot examples often conflict with the model's internal RLHF alignment or schema enforcement, leading to unpredictable edge cases \(e.g., the model mimicking a typo in the example or failing to adhere to a required key because the example omitted it\). Structured output features guarantee syntactic validity at the decoding level, making few-shot examples redundant and actively harmful for formatting tasks.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T00:16:17.386039+00:00— report_created — created