The Simple Rule That Tells You When to Show AI Examples, and When to Just Ask for What You Want
Here's something that trips up a lot of people getting started with AI prompting: whether to give the AI examples of what you want, or just describe it in plain language. The good news is there's a straightforward principle that covers most situations, and once you understand it, you'll make better prompts almost immediately. When you're asking the AI to do something it already knows how to do, like writing a summary, translating a sentence, or answering a factual question, you usually don't need to provide examples. This is called "zero-shot" prompting, and it works because the AI has already learned these patterns from its training. Just tell it clearly what you want: "Write a professional email declining this meeting invitation" or "Explain photosynthesis to a fifth grader." The more specific you are about your goal and any constraints, the better it performs. But when you're asking the AI to follow an unusual format, adopt a specific style it might not guess, or handle a task with particular nuances, that's when you want to throw in a few examples. Typically, two to five work well. More than five is usually wasted energy. This is "few-shot" prompting. For instance, if you want it to extract information from customer reviews in a specific table format, show it what that format looks like. If you need it to respond to inquiries in your company's particular voice, give it a sample exchange. The examples act as a template the AI can follow. The key insight: use zero-shot when the task is standard and well-defined; use few-shot when the task requires a specific structure or style the AI couldn't otherwise guess. One practical tip as you practice: start with zero-shot. If the output isn't quite right, then add examples to steer it. This approach saves you time and helps you learn what actually moves the needle on quality. You'll develop an intuition for this quickly, and soon enough, you'll be prompting with confidence.