Skip to content

Prompting

One-shot prompting

Giving a model one example before asking it to perform a similar task.

Example

A prompt includes one completed expense-category example before asking the model to classify another.

Why people use it

Teams use “One-shot prompting” when they need to give models clearer instructions and diagnose weak prompts.

What you'll hear

“Can we improve this with One-shot prompting before we change the model?”

Related terms