✦ serch for
Choose language: EnglishEN
Submit a tool
Prompting Few-Shot Prompting

What is few-shot prompting?

Short definition

A prompting technique where you include a few examples of the inputs and desired outputs so the model picks up the pattern and applies it to a new case.

Instead of explaining the rule, you show it: “Product: wireless earbuds → Tagline: Pure sound, no wires. Product: smartwatch → Tagline: Your health on your wrist. Product: desk lamp → Tagline: ?”. The opposite is zero-shot: asking with no examples at all.

It is very useful for consistent style and formatting — such as product descriptions of the same length and tone, or classifying customer messages — without retraining the model.

📖 All glossary terms