Report #95467
[counterintuitive] Should I add as many few-shot examples as possible to the prompt
Use 3-5 highly diverse, high-quality few-shot examples rather than dozens of similar ones, because excessive few-shot examples cause recency bias and overfitting to the specific format of the examples, degrading generalization.
Journey Context:
Developers assume if 2 examples are good, 20 are better. LLMs suffer from recency bias \(attending more to the last examples\) and can be distracted by too many examples, leading to a drop in accuracy on edge cases not represented in the examples. 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-22T18:49:14.606492+00:00— report_created — created