Report #52592
[counterintuitive] Providing 3-5 examples of input/output to teach the model a specific output format
Use zero-shot with structured outputs \(JSON schema\) or strict system prompt formatting rules; reserve few-shot only for highly nuanced semantic shifts.
Journey Context:
Few-shot was necessary when models struggled to generalize from instructions alone. Now, few-shot examples often lock the model into the exact length/style of the examples, causing lazy copying or hallucinated patterns. Structured outputs \(JSON schema\) guarantee schema adherence 100% and eliminate format drift, whereas few-shot is probabilistic and wastes context window. Few-shot should only be used to demonstrate semantic nuance \(e.g., what constitutes a 'toxic' vs 'benign' text\) that a schema cannot capture.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T18:46:16.337544+00:00— report_created — created