Skip to content
BENIBIX Learn

One-Shot Prompting

AI🛠️ Working with AIPrompt Writing Techniques

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

One-shot prompting means you put just one worked example in your prompt. The example shows an input and the answer you want for it. The model copies the shape, tone and length of that one answer. It sits between zero-shot, with none, and few-shot, with a few. One example is often enough to fix the format. It can also make the model copy that example too closely.

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:
One input and its answer, then a new input for the model to finish.
One example in the prompt. The model follows its shape for the new input.

Common mistake

Picking an odd example. The model copies its quirks, like its length or its words, into every answer.

Key takeaways

  1. 1
    One example. An input and its answer.
  2. 2
    Copies the shape. Format, tone and length.
  3. 3
    Choose it well. Its quirks spread to every reply.

Learn it properly