Report #45616
[counterintuitive] Should I add as many few-shot examples as possible to the prompt
Use 3 to 5 highly diverse, high-quality few-shot examples. More examples often degrade performance due to recency bias and context length constraints.
Journey Context:
Developers assume that if 3 examples are good, 20 examples are better. LLMs suffer from recency bias \(paying more attention to the last examples\) and primacy bias. Adding too many examples often pushes the model to overfit to the specific examples rather than generalizing to the task, and increases the chance of format drift or conflicting signals in the examples. Research shows the ground truth labels in few-shot examples matter less than the format, and more examples don't strictly improve performance.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:02:35.658627+00:00— report_created — created