Prompting beginner

One-Shot Prompting

Giving exactly one worked example alongside the instruction.

One example is often enough to lock in format when the task itself is understood but the shape of the output is not. It is the cheapest way to stop a model from wrapping JSON in prose.

In practice: Show one input-output pair, then hand over the real input.

Where this comes up