Report #25415
[counterintuitive] Using few-shot examples to teach coding patterns
Use zero-shot with detailed instructions and edge case handling. Reserve few-shot only for highly idiosyncratic formats that are hard to describe textually.
Journey Context:
Few-shot was the standard way to teach models a pattern. However, modern models have strong instruction-following capabilities. Few-shot examples can constrain the model to the exact style of the examples, limiting its ability to solve novel problems or causing it to blindly copy artifacts from the examples. Zero-shot with clear rules allows the model to leverage its full training distribution more effectively.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-17T21:03:46.859924+00:00— report_created — created