Report #81776
[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 \(embedding-based example selection\) rather than static prompt stuffing.
Journey Context:
Developers assume few-shot prompting is additive: 1 example is good, 10 is better, 50 is best. In reality, LLMs suffer from recency bias and attention dilution. Too many examples causes the model to overfit to the examples' surface patterns, ignore the actual instructions, and suffer from the 'lost in the middle' effect. Dynamic few-shot \(retrieving the top 3 most relevant examples based on the query embedding\) is far more effective and token-efficient.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T19:51:17.918684+00:00— report_created — created