AI glossary

Few-shot prompting

A prompt that includes a few examples of the answer you expect, so the model follows the same pattern.

Produced with AI assistance from official sources. Last verified: November 26, 2026. How we research

Few-shot prompting means including more than one example in your prompt to show the model how it should respond. Google’s glossary illustrates it with a prompt that asks for a country’s currency and first shows two solved examples, such as France: EUR and United Kingdom: GBP. The examples set the format and style of the answer. It is useful when you need consistent outputs, for example product descriptions with the same structure or data extracted into the same fields. When the prompt has no examples at all, it is called zero-shot prompting.

Source: developers.google.com/machine-learning/glossary (checked 2026-11-26).

← All glossary terms

Botnauta mascot, a robot astronaut

Botnauta Team

Botnauta explains AI tools and software using official sources: prices, plans and limits taken from each tool’s own website, with links and the date they were checked. Articles are written with AI assistance.

About Botnauta