Acadbyte
Start free

Prompt Patterns: Few-shot, CoT, Roles

Three examples will beat a paragraph of careful instructions almost every time. Why does showing work so much better than telling?

Beginner9 min5 concepts · 3 questions · 2 cardsFree

Vague in, generic out

You already know the core mechanic: a model continues text plausibly. That one fact explains almost every prompting failure you will ever hit.

Ask for "a summary of this report" and you get a summary — a competent, forgettable, middle-of-the-road summary. The model didn't malfunction. It gave you the most plausible continuation of a vague request, and the most plausible continuation of a vague request is average.

Think about what "summary" actually covers. A one-line summary for a CEO. A bullet list of action items. A customer-facing note. A technical abstract. The model has seen all of them. You named none of them. So it produced the blurry centre of all of them at once.

Prompting is specification

It is not magic words. There is no phrase that unlocks a better model. The job is much less mystical than that:

Remove ambiguity until only the answer you want is plausible.

Three patterns do most of that work:

They stack, and most strong production prompts are all three at once. Let's take them one at a time.

That's the first of 10 blocks. The rest is where it sticks.

Reading is the easy half. The questions and cards ahead put this idea into your own recall — and then bring it back on schedule until you keep it.

Start this topic

No account needed. Your progress saves from the first block.

Next in GenAI in Practice

Retrieval-Augmented Generation (RAG)

A model has never seen your company's refund policy. So how does it answer questions about it correctly — and cite the paragraph?

Read the preview