Report #36814
[counterintuitive] Should I add as many few-shot examples as possible to the prompt
Use 3-5 highly diverse, high-quality few-shot examples; adding more examples beyond this often degrades performance due to recency bias and attention dilution.
Journey Context:
Developers assume 20 examples teach the model better than 3. In-context learning is heavily influenced by recency bias \(the model pays more attention to the last examples\) and majority bias. Too many examples confuse the model, increase cost, and push the actual query far from the system instructions. Research shows the format and diversity of the examples matter far more than the quantity.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-18T16:16:22.349248+00:00— report_created — created