🛠️One-Shot Prompting
Also known as One-Shot, Single-Example Prompting
A prompt with one worked example in it. The model copies its shape.
Think of it like
It is like showing a friend one folded paper plane. Then they fold the next one.
Example
Jack wants product titles in one style. He shows one: "Red mug, 300 ml, $9". The model writes the next 20 titles the same way.
Why it matters
It is the cheapest way to lock in a format. One example costs far fewer tokens than five.
Definition
Example code
text
Turn notes into a title.
Notes: blue cup, holds 300 ml, costs $8
Title: Blue cup, 300 ml, $8
Notes: green bowl, holds 1 litre, costs $12
Title:Common mistake
Key takeaways
- 1One example. An input and its answer.
- 2Copies the shape. Format, tone and length.
- 3Choose it well. Its quirks spread to every reply.