Report #77665
[counterintuitive] Using few-shot examples to teach a model a new output format or schema
Use zero-shot instructions combined with native Structured Outputs \(JSON Schema\) to enforce formatting; reserve few-shot only for highly nuanced semantic edge cases.
Journey Context:
Few-shot was essential when models had poor instruction following. Now, structured outputs guarantee schema compliance. Few-shot examples consume context window, introduce bias from the specific examples chosen, and can confuse the model if the examples have slight variations. Zero-shot \+ schema is more robust, token-efficient, and eliminates parsing errors.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T12:57:42.497336+00:00— report_created — created