AI Dictionary › Prompting

One-shot

One-shot prompting is the middle ground between zero-shot and few-shot: you provide the model with a single example of desired input and output before the actual task. One well-chosen example is often enough to convey the expected format, tone and level of detail.

Definition

When to use it: the output format is distinctive but not complex, the required style is specific (a complaint response "in your company's voice"), or the model systematically misreads the request in zero-shot. Compared to few-shot, it saves tokens and preparation time.

The zero/one/few-shot choice is a prompt engineer's call: more examples give more control but consume context. The practical rule: start with zero-shot, add one example if the result disappoints, move up to few-shot only if it's truly needed.

Related terms

More in Prompting

Put it into practice

From our network

HSE Genius: AI for Safety Data Sheets

Extract SDS data, H phrases and ECHA compliance checks in seconds, powered by AI.

Visit hsegenius.com →

From the Agora Intelligence blog

More on agora-intelligence.com →

Grace teaches you to communicate with AI.

Grace Certified, the AI coach that trains and certifies your prompt engineering, by Agora Intelligence.