Learn AI Math

One-shot Prompting

What is One-shot Prompting?

In one sentence: One-shot prompting is asking an AI to do a task after showing it exactly one example.

The single example shows the model the format or style you want. It is like showing a friend one solved math problem before asking them to solve the next. This often helps the model match your expectations better than no example.

What does One-shot Prompting look like?

"Happy → Sad. Big → ?" gives one example of opposites before asking for the next.

Why does One-shot Prompting matter?

A single good example can fix confusing formats or styles quickly.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.