Report #93816
[counterintuitive] adding more few-shot examples always improves in-context learning
Use 3-5 highly diverse, high-quality few-shot examples; if more are needed, use retrieval to dynamically select the most relevant examples per query rather than stuffing static examples.
Journey Context:
Developers add dozens of few-shot examples to the prompt, thinking more examples equals better generalization. This leads to context window bloat, attention dilution, and overfitting to the specific phrasing of the examples. Models learn the pattern better from a few clear, diverse examples than from many redundant ones.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T16:03:30.455929+00:00— report_created — created