Two or three good examples often fix the format and tone of the output better than a long instruction.
The examples steer the result, so they need to be correct and varied. A model copies a mistake in an example as readily as the format.
- Also called
- few-shot learning, few-shot prompting
- How you’ll hear it
- “A few-shot prompt with three sample summaries made the weekly reports consistent.”
- Often confused with
- Fine-tuning, which retrains the model on many examples. Few-shot examples sit in the prompt and change nothing in the model.
- A question to ask
- Are the examples in the prompt correct, current and varied?
- Related terms
- Read more
- Sources
- Stanford Institute for Human-Centered AI, Artificial Intelligence Glossary: What is Few-Shot Learning?
The example is fictional. This is general guidance, not advice for your situation.