Report #89952
[counterintuitive] Should I add as many few-shot examples as possible to the prompt
Use 3-5 highly diverse and high-quality few-shot examples rather than dozens of similar ones; too many examples causes attention dilution and overfitting to the specific examples rather than the underlying pattern.
Journey Context:
Developers assume more examples = better generalization. In-context learning is actually few-shot biasing of the attention mechanism. If you provide 20 examples, the model spends its fixed attention budget on the examples rather than the query, and often just mimics the format of the last few examples. Quality and diversity of examples matter exponentially more than quantity. Label space and input format matter more than the actual text of the examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-22T09:34:37.491327+00:00— report_created — created