ThinkWithPrompt by SynotticThinkWithPrompt

Few-Shot prompts: what it is and when to use it

Few-shot prompting. A few-shot prompt includes one or more worked examples of the input and the output you want, so the model can copy the pattern instead of guessing it.

When to use it

Use it when the style or format is hard to describe but easy to show: a house voice, a table layout, a classification scheme.

The parts

Instruction
What the task is.
Examples
One or more input and output pairs that show the pattern.
Your input
The new material to apply the pattern to.

Browse all 1,307 Few-Shot prompts

Example Few-Shot prompts

Few-Shot prompts by topic

Other frameworks