Show it, do not just ask.
- Score
- 0
- Round
- 1/3
Four ways to ask for the same thing. Which one changes what the AI does?
Goal
Get it to say how many wheels a bicycle has.
Tap the one you think works.
Goal
Get it to say how many wheels a bicycle has.
Right. +120
Only the example changed what it did: one word, like the example. But it said “five”, not “two”.
Four ways to ask. Only one changes anything.
- Plain
- Polite
- Role
- Example
Goal
Get it to say what colour the sky is. The answer is blue.
You type
What colour is the sky?
The AI says
(nothing)
It says nothing useful.
Delegate, do not converse.
Next time you use ChatGPT
Show it one example of what good looks like.
- Instead of
- Write a catchy caption for my bakery's new cookie.
- Try
- Here is a caption of ours that did well: "Warm, gooey, gone by noon." Write five like it for our new oat cookie.
+Check one of your own promptsPaste a prompt you have really sent and see what it is missing.
Prompt inspector
Runs entirely in your browser
- Tokens
- counting…
- Characters
- 77
- Parts found
- 0/5
Tokens measured with the real o200k_base encoding (the merge table is still loading). That number is exact. The five checks below are not.
- Role: noneWithout it you get the average of everyone who has ever written on the topic. You are a … / Act as a …
- Goal: noneWithout it the reader has to guess the job, and a guess is what you get back. Rewrite … / Summarise … / List three …
- Constraints: noneWithout them nothing is out of bounds, so length and tone land wherever they land. Under 150 words. Do not … / Avoid …
- Format: noneWithout it you get prose when you wanted a table, and you do the reformatting. Answer as five bullets. / Return a two-column table.
- Example: noneWithout one, 'good' means whatever the reader already thought it meant. For example: '…' / Good: '…'
How this check works:it looks for the phrasings these five parts usually take in English. “you are”, a verb at the start of a sentence, a word limit, the name of a format, “for example”. It is a pattern match, not comprehension. It will miss a constraint you phrased unusually, and it will happily tick a box for a role that makes no sense. Read what it matched on and decide for yourself.
+What is actually going onDoes the politeness actually cost me anything?It costs tokens and instructs nobody. That is the honest answer. The game charges you for it so that you have to read it.
Every word you send is cut into tokens and takes up room in the context window, which has a hard limit. So filler has a real price, and you can watch it: the sheet under the game counts your assembled prompt with the same o200k_base tokenizer a real model uses.
But be clear about the size of that price. On a short prompt it is trivial, and there is no evidence that being courteous makes answers worse. The reason the game penalises filler is not that “please” is dangerous. It is that people type a hundred words of throat-clearing, feel like they have written a lot, and never notice that they never said how long the answer should be.
Take it apart yourself: TokensToken Chopper · 7 min. Optional.
+What is actually going onWhy does an example beat describing what I want?The model is continuing a pattern it can see. An example is the pattern; an adjective is a hope.
The model produces text that plausibly continues its input. If its input contains a worked example of the thing you want, the most plausible continuation is another one of those. That is the whole mechanism. Brown and colleagues named it few-shot learning and measured it in 2020, and nothing is being retrained when it happens.
Which explains a habit worth building: keep the two or three best outputs you ever got and paste one in next time. “Punchy but not salesy” means whatever the model already thought it meant. A paragraph you actually approved of does not.
Take it apart yourself: How an LLM answersPlinko · 8 min. Optional.
+Watch somebody explain itA tour of the techniques, if you want more than the five elements.
Optional: watch someone explain it
Prompt Engineering Overview
Elvis Saravia
A tour of the techniques, if you want more than the five elements.
+Go and try this on a real assistantSend the bad one first, on purpose.
Go and try this
Send the bad one first, on purpose
Take a real task from this week. Ask for it in one lazy line, the way you normally would, and keep the answer.
Now, in a fresh chat, write the same request as a brief: role, goal, constraints, format, and one example of good. Put the two answers side by side.
What to watch for: How much of the gap between the two answers came from adding an example, rather than from adding more description. That ratio surprises most people.
+Check yourselfTwo beats. It marks itself, and nothing is sent anywhere.
Here is a request as most people write it. Tap the parts that a competent stranger could not act on.
Four of these eleven pieces are unusable. Tap those four.
Which of these is the fastest way to tell whether a prompt is good enough?
Sources
- Prompt Engineering Overview
Elvis Saravia
A tour of the named techniques, for anyone who wants more than the five parts.
- Language Models are Few-Shot Learners
Brown et al. (arXiv:2005.14165, 2020)
The measured result that examples placed in the prompt itself change what a model produces, with no retraining.
- Principled Instructions Are All You Need for Questioning LLaMA-1/2, GPT-3.5/4
Bsharat, Myrzakhan & Shen (arXiv:2312.16171, 2023)
A tested set of instruction principles, including the finding that stated audience, explicit format and worked examples move output quality.
- Prompt engineering overview
Anthropic developer documentation
A vendor's own guidance, which lands on much the same short list of parts.
- gpt-tokenizer
npm package, o200k_base encoding
Counting the real o200k_base tokens in the prompt you assemble, and in anything you paste into the inspector.
MIT