Report #54248
[counterintuitive] Providing 3-5 full examples of code in the prompt to teach the model a new pattern
Use zero-shot with explicit rules/schemas, or use RAG to fetch a single highly relevant example.
Journey Context:
Few-shot was essential for GPT-3 to demonstrate the desired output format. With modern instruction-tuned models, long few-shot examples consume context window, increase latency, and cause attention dilution \(the model gets confused by overlapping details in the examples\). Zero-shot with clear schemas \(Pydantic/Zod\) or RAG for 1 specific reference is far more reliable and token-efficient, as the model no longer needs pattern extraction from examples to follow instructions.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T21:33:04.213836+00:00— report_created — created