Report #94325
[counterintuitive] Using few-shot examples to teach the model an output format or schema
Use zero-shot prompting with native structured output features \(JSON Schema, tool/function calling\) instead of burning context window on examples.
Journey Context:
Few-shot was essential when models struggled with zero-shot instruction following. Now, structured output features guarantee 100% schema adherence. Few-shot examples consume massive context, increase latency, and can confuse the model if examples have slight variations or the model attempts to mimic the example's content rather than the format. Zero-shot plus schema is more robust, cheaper, and deterministic.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:54:39.165025+00:00— report_created — created