Report #59383
[counterintuitive] Using few-shot examples to define the output format of a model
Define the format explicitly in the system prompt or use structured output schemas, using few-shot only for behavioral logic.
Journey Context:
Developers often conflate teaching a model what to do with how to format it. Using examples to teach formatting \(e.g., showing 3 examples of JSON output\) wastes context window and creates rigid adherence to example-specific quirks. Modern models can follow explicit formatting instructions perfectly, especially with structured outputs. Examples should be reserved exclusively for demonstrating complex decision-making logic or subjective style that is hard to articulate in rules.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T06:10:05.778602+00:00— report_created — created