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? <a href="https://getaimath.com/dictionary/one-shot-prompting/">One-shot Prompting, explained simply</a> (The AI Math Dictionary)