Report #26986
[counterintuitive] Relying on few-shot prompting as the default for coding patterns
Use zero-shot with explicit schema definitions \(e.g., Pydantic models, JSON Schema\) or detailed instruction. Reserve few-shot only for highly idiosyncratic styles that cannot be described formally.
Journey Context:
Few-shot was essential for GPT-3 to understand intent. Modern models have strong instruction following. Few-shot examples consume context window, add latency, and can cause 'example contamination' where the model copies bugs from examples. A precise schema is more token-efficient and less ambiguous.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T23:41:33.134472+00:00— report_created — created