AI IQ™
AI Glossary

Few-Shot Prompting

Including a few worked examples in a prompt to show the model what you want.

Large language models can pick up a task from examples placed directly in the prompt, an ability called in-context learning. No retraining is needed.

Zero-shot means no examples, one-shot means one, and few-shot means a handful. Examples are especially useful for teaching a specific format, tone or labeling scheme.

💡 Example: Giving three example product reviews labeled positive or negative, then asking the model to label a fourth.

Related terms

Think you know your AI terms? 🤓

Take the Medium quiz Back to glossary

Vad har du för AI IQ™?

Gör det kostnadsfria quizet med 10 frågor, se poäng och rang på några minuter och utmana en kompis att slå dig.