AI glossary
What is few-shot prompting?
Short answer
Including a few examples of the desired output in a prompt so the model follows the pattern.
For example
Show a model three product reviews each labelled positive or negative, then a fourth unlabelled one, and it will usually label the fourth in the same style.
Learn it in a free lesson
Related terms
Questions
What is few-shot prompting in simple terms?
Including a few examples of the desired output in a prompt so the model follows the pattern.
What is an example of few-shot prompting?
Show a model three product reviews each labelled positive or negative, then a fourth unlabelled one, and it will usually label the fourth in the same style.
Where can I learn about few-shot prompting for free?
AI in Bed explains it in the free lesson "Talking to AI: prompting well" (Beginner level, 6 minutes), with no sign-up.