Word of the Day

One-Shot Prompting

One-shot prompting includes exactly one worked example to anchor the model's format and style.

Get it free

One-shot prompting is few-shot with a single example. It is the cheapest way to communicate an exact output shape when a plain instruction isn't enough but you don't want to spend context on many examples.

It works well for formatting and tone. For harder classification or reasoning consistency, add more examples (few-shot) or reasoning steps (chain-of-thought).

Related: few shot prompting · zero shot prompting

One of these every weekday

Three minutes. One prompt, one word, one skill. You're now better at AI than you were yesterday.

Free. All terms