One-Shot Prompting
ELI5 — The Vibe Check
One-shot prompting is giving the AI a single example of what you want, then asking it to do the same pattern for new input. 'Here's how I formatted component A. Now do the same for component B.' It's like showing someone one completed puzzle piece and asking them to fill in the rest. Works surprisingly well when your example is good.
Real Talk
One-shot prompting provides a single demonstration example in the prompt to guide the model's output format, style, or approach. It sits between zero-shot (no examples) and few-shot (multiple examples) prompting. In coding contexts, it's commonly used by sharing one implemented component or function as a pattern for the AI to replicate across similar tasks.
When You'll Hear This
"I one-shot prompted the API with one endpoint example and it generated all 12." / "One-shot works well when your example is clean and representative."
Related Terms
Few-Shot Learning
Few-shot learning is teaching an AI by showing it just a few examples — like showing someone two pictures of a platypus and saying 'find more of these.
Prompt Engineering
Prompt engineering is the art of talking to AI so it actually does what you want.
Vibe Coding
Vibe coding is writing software by vibes — you describe what you want to an AI, it writes the code, and you just... vibe.
Zero-Shot Learning
Zero-shot learning is when you ask an AI to do something it was never explicitly trained on — and it just... does it.