Report #57790
[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. If you need more, use dynamic few-shot selection \(embedding the examples and retrieving the top-k relevant ones per query\).
Journey Context:
Developers stuff the prompt with dozens of few-shot examples, assuming more examples = better generalization. LLMs suffer from recency bias and attention dilution. Too many examples causes the model to overfit to the examples, ignore the actual query, or mimic errors in lower-quality examples. Research shows the ground truth label in few-shot examples matters less than the format and diversity of the examples.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T03:29:16.025009+00:00— report_created — created