Back to glossary
AITerm

Few-shot / Zero-shot

few-shot prompting · zero-shot · examples in the prompt

Few-shot prompting includes example inputs and outputs; zero-shot prompting supplies a task without such examples.

Few-shot prompting supplies a small number of examples of the desired input and output. Zero-shot prompting gives the task without examples. Examples help communicate format, tone and decision rules that can be difficult to describe abstractly.

For a headline task, I might provide three to five approved headlines and explain why they work. Choose examples that represent the task, including relevant edge cases, rather than expecting the model to copy a pattern without understanding the goal.

If the first prompt produces an unsuitable answer, examples are one useful adjustment. They do not guarantee correctness, and they can introduce bias if they are inconsistent or too narrow.

Related terms

Explore practical examples

Need help applying this to your project?

I review metrics, calculate unit economics and build measurable funnels. Book a free 30-minute introduction to discuss your project.