← Back to Foundations

Topic Prompting

Foundations · How models work · 7 min read

Why does the same model give better answers to a better prompt?

Updated November 28, 2026: Added a note for every reader card.

Prompting · Part 1 of 3 · 2 min

Why a few examples change the answer

Everything you type to a chatbot, and everything an app quietly adds around it, reaches the as one block of text, and that whole input is the . It can hold your question, instructions, examples and source material, and changing it is the cheapest way there is to change what a model does, because you never touch the model itself. So it is worth knowing how far that lever reaches, and where it stops.

A 2022 study shows how far it can go. Its authors tested showing a model the steps toward an answer, which they called . They gave a very large language model, the kind behind ChatGPT, eight worked examples before asking it to solve new math word problems from GSM8K, a standard set of grade-school math questions. The examples showed the intermediate steps on the way to each answer, not just the answers, and with them the model reached the best score anyone had reported on that test. They had not retrained it for those questions. They had only changed the text it saw before answering.

The idea that a prompt alone can get a model to do a new task wasn't new. Inside every model are the numbers adjusts, its , and the team behind GPT-3 had already given a model tasks and examples as plain text and reported results without changing those weights at all, or doing any extra training on a narrower task, which is called fine-tuning. So a prompt steers a reply without teaching the model anything lasting. It shows the model a pattern to follow for this one task, and since a pattern that fits one task need not fit another, success on one task tells you little about the next.

Why would a few examples help so much? Picture a made-up case. You ask a model to sort support messages, and the bare instruction "classify this" leaves it guessing what the categories are. Add two examples, one message asking for money back labeled "refund" and one about a broken login labeled "needs help", and the model can see both the labels to choose from and the format of the answer. A bare question leaves the target unclear, while an example shows the kind of answer you want and how to get there. OpenAI calls this , teaching by example inside the prompt rather than by fine-tuning the model.

The same power cuts the other way, because the model follows the pattern you show it, including the parts you didn't mean. If all your examples are easy complaints, it may stumble on a mixed message, and if an example contradicts the written instruction, you can't assume the instruction wins. GPT-3's authors reported strong results on many language tasks, and also named datasets where learning from examples still struggled. So the eight math examples show what a prompt achieved under that study's conditions, not what it will achieve on your next question. What made them special was that they showed the path to an answer.

In short

A prompt changes what a model does without touching its weights. Examples teach a pattern to follow, including the parts you didn't mean to teach.

  1. Instructions
  2. Examplesshow the kind of answer and how to get there
  3. The same modelweights unchangedSet during training, then fixed
  4. A different answer
Example Eight worked math examples took one large model to a leading score on a word-problem test, with no retraining.

Quick check (optional)

Your model keeps labeling refund requests as "needs help". Without any retraining, what's the quickest fix to try?

Go deeper2 short reads · 2 min
Worked steps helped large models, not small ones1 min

The chain-of-thought result came with a twist the paper's authors stress. The technique did nothing for small models, and in fact the authors found that smaller models produced fluent but illogical chains of thought, which left them doing worse than if they had simply been asked for the answer. Writing out the steps paid off only once models were large enough, an ability the authors describe as emerging in sufficiently large models. Anyone copying a prompt from one model to another should know this, because a trick that helps a large model can actively hurt a small one, and the only way to know is to test it on the model you will actually use.

Who outranks whom inside a prompt1 min

A prompt is rarely one block of text from one person. In most products it combines the developer's standing instructions with whatever the user types, and OpenAI says it gives developer messages priority ahead of user messages. Its guide offers a programmer's way to picture it, with the developer's message as the function definition that sets the rules and the user's message as the arguments the rules are applied to. The same guide carries a warning that explains why prompt work never quite ends. Even different snapshots of models within the same family could produce different results, so a prompt that works well on one snapshot is worth testing again before a product moves to another.

For your work · Generalist

Say a coworker's prompt gets a sharp, usable answer from the same model that gave you mush. Compare the two prompts line by line and look for what they added: a clearer request ("three bullet points for a CFO"), an example of a good answer, or a pasted document. The model didn't change, since GPT-3 took on tasks from prompt text alone with no retraining, so whatever improved came from those added lines. Copy the part that did the work into your own prompt.

Your toolkit · The prompt diff. Compare a better prompt with yours line by line and copy the part that did the work.

For your career · Comparing two prompts on the same task is the start of real AI skill. Next: Reasoning models and thinking time (when to let the model think longer), then What an AI agent is.

Career paths are getting more detailed and more tailored to you soon.

Words in this lesson (10)
chain-of-thought prompting
Showing the model examples that spell out the steps between a question and its answer, so it works through a problem before answering.
evaluation
A test of how well a model or AI system does a job, with set tasks and a rule for scoring the answers.
few-shot learning
Putting a few worked input and output examples in the prompt so the model can follow the pattern. The model's weights do not change.
fine-tuning
Extra training on a smaller, focused set of examples. Unlike a prompt, it changes the model's weights.
memorization
When a model scores well because it saw the test items during training, not because it can do the task.
model
A program that has learned from examples to turn an input, such as your question, into an output, such as an answer. Inside, it is a large set of learned numbers.
prompt
All the text a model receives before it answers, including the question, instructions, examples and any source material an app adds.
training
The stage where a model learns. It guesses on examples with known answers, and its numbers are nudged until the guesses improve. It happens before the model is put to use.
vector database
A store that finds passages by meaning rather than exact words, often used to fetch relevant text and add it to a prompt.
weights
The numbers inside a model that training sets. Each one decides how much an input counts toward the answer, and they stay fixed while you use the model.

Sources

Original research and official documents used for this version.

arxiv.org ↗arxiv.org ↗developers.openai.com ↗anthropic.com ↗arxiv.org ↗

Core path · 7 of 25

Before this · Inference and context, Context windows and token budgets

Next · Reasoning models and thinking time

See all of Core path

Where things stand now (2026-11-21)

As of November 21, 2026, OpenAI’s prompt guide still distinguishes examples in the prompt from fine-tuning. It also describes tests as prompt behavior or model versions change. Which prompt works best remains a measured question for each task.

Version history

Earlier lessons remain available when the evidence changes.

Version 2 · Added a note for every reader card.

Version 1 · Written from original sources