Report #41478
[counterintuitive] Should I always add few-shot examples to improve LLM accuracy
Start with zero-shot with clear instructions; only add few-shot examples if zero-shot fails, and ensure examples are highly diverse to avoid biasing the model's output distribution.
Journey Context:
Developers reflexively add 3-5 examples to prompts. However, few-shot can anchor the model too heavily to the specific examples, causing it to hallucinate features present in the examples but not in the prompt \(format overfitting\). With modern instruction-tuned models, zero-shot often matches or exceeds few-shot because the models are already heavily aligned to follow instructions without demonstrations.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T00:05:29.892557+00:00— report_created — created