Skip to content

What is…

Few-shot prompting

Showing the model a few examples of what you want before asking it to do the real task.

Instead of describing a format in words, you demonstrate it: two or three input → output pairs, then the new input. Models are excellent pattern-matchers, so examples often beat paragraphs of instructions — especially for tone, labels and structure.

Zero-shot means no examples; one-shot means one.

📌 Example

Two examples of product descriptions in your brand voice, then: "Now write one for the blue kettle."

🧠 Test yourself

Which of these describes Few-shot prompting?

Related terms

🎮 Learn AI by playing

40 bite-size missions, boss battles and a certificate. Free.

Start the bootcamp →

☀️ One AI term every morning

Plus the day's top stories, in your inbox by 8am.