Dictionary term

Few-shot Prompting

PromptingBeginner

Few-shot prompting gives the model a handful of example input-output pairs in the prompt to show it exactly what you want.

In plain English

Few-shot means showing the AI a few finished examples in your prompt so it copies the pattern.

Analogy

Like showing a new hire two or three completed samples before asking them to do the next one.

Why it matters

Adding a few examples sharply improves accuracy and formatting consistency for tricky extraction or classification steps.

In practice

Showing three messages already labeled Sales/Support/Spam, then asking the model to label a fourth.

Browse all terms →Last verified