How to Pick Few-Shot Examples
Guide · about 6 min · refs checked 2026-11-03 (reference links and dates only)
Dropping a few input→output examples into the prompt changes performance noticeably — but bad examples steer the model the wrong way. Five criteria for picking them.
Example and interpretation
A teaching scenario, not a measured or executed site test.
For sentiment classification, include a mixed review such as “Good item, late delivery” alongside clear positives and negatives, with a labeling rule. Examples explain boundaries; copying test items into them does not demonstrate generalization.
How to check your practice
Explain the example in your own words, inspect input constraints, then verify against the source. Revisit concepts if you cannot explain why; supply missing dates, fields or permissions; withdraw unsupported conclusions.
For this topic, start with concept confusion · See all six scenarios and their reasoning
More Parameters Always Means Smarter · How to Ask AI · How to Structure a Prompt · How to Get AI to Output in Your Format