Report #90002
[counterintuitive] Providing few-shot examples to teach output formatting
Use zero-shot instructions with API-level structured output enforcement \(JSON mode/schemas\) first.
Journey Context:
Few-shot was essential for GPT-3 to understand intent and format. Modern models have strong instruction-following. Few-shot examples consume context window, introduce recency bias, and can conflict with system instructions. Zero-shot with JSON schemas is more robust, context-efficient, and guarantees valid syntax via logit masking.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:39:39.599903+00:00— report_created — created