Report #55526
[counterintuitive] Should I add as many few-shot examples as possible to the prompt
Use 3-5 highly diverse, high-quality few-shot examples. If more coverage is needed, use dynamic few-shot retrieval \(kNN\) rather than static prompt stuffing.
Journey Context:
Developers add 20\+ few-shot examples thinking the model will generalize better. In reality, LLMs suffer from recency bias and attention dilution. Too many examples causes the model to overfit to the specific examples, fail to generalize, and prioritize the format of the last few examples while ignoring the actual task instructions. Quality and diversity of examples matter vastly more than quantity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T23:41:37.723227+00:00— report_created — created