
Few-Shot Learning is when you give an AI model a small number of examples of a task within your prompt, helping it understand exactly what you want before it responds.
What it means in plain English
Sometimes an instruction alone is not enough to get the format or style you want. Few-shot learning solves this by including a handful of examples in the prompt — showing the model the pattern to follow. The model picks up the pattern from those examples and applies it to your actual request. It is a simple, powerful way to steer output without any retraining.
It sits between zero-shot (no examples) and fine-tuning (training on many examples), often giving much of the benefit with none of the cost.
A simple example
To get product descriptions in a very specific style, you include two or three example descriptions in your prompt, then ask for a new one. The model matches the style of your examples far more reliably than from instructions alone.
Why it matters
Few-shot learning is one of the most practical prompting techniques. Because showing examples is often more effective than describing what you want, it is a key skill for getting consistent, well-formatted results from AI.
Related terms
- Zero-Shot Learning — performing a task with no examples.
- Prompt Engineering — the broader skill few-shot belongs to.
- Fine-Tuning — training on many examples, a heavier alternative.
Frequently asked questions
What is few-shot learning?
It is when a model learns a new task from only a handful of examples. With large language models, it often means giving a few examples in the prompt to guide the response.
How does it differ from zero-shot learning?
Zero-shot learning gives no examples — the model relies on prior knowledge — while few-shot provides a small number of examples to steer it.