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

Jaké je VAŠE AI IQ™?

Zahrajte si bezplatný kvíz s 10 otázkami, během pár minut uvidíte své skóre i pořadí a můžete vyzvat kamaráda, ať vás překoná.