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

Ποιο είναι το δικό σας AI IQ™;

Παίξτε το δωρεάν κουίζ με 10 ερωτήσεις, δείτε σκορ και βαθμίδα σε λίγα λεπτά και προκαλέστε έναν φίλο να σας ξεπεράσει.