Ology

Instructions, Examples, and the Evidence Between Them

Choosing between clearer instructions and high-quality examples to improve model performance across tasks and models

5 sessions · 10 readings · 5 views

Curated by Nadia Brandt

The Prompt Is a Specificationsession 1Examples as Compressed Policysession 2Capability Before Clevernesssession 3Three Shots, or Thirteen?session 4Did the Prompt Actually Improve?session 5

Opening

A prompt can improve a model’s output by making the task clearer—or by showing what a good answer looks like. That sounds like a simple choice until examples encode unstated preferences, instructions accumulate into brittle rulebooks, and the same prompt behaves differently across models.

Recent technical writing shifts attention from finding magic wording toward choosing and measuring the whole context: instructions, examples, formatting, and model. Experiments from LangChain suggest that examples can outperform instruction tuning on some tasks, while which models benefit—and how much—varies. Anthropic’s newer framing of “context engineering” pushes the question further: the object being designed is not just a sentence, but the information presented to the model.

The evidence also resists easy rules. A real deployment case combines examples, expert workflow, and other prompt changes, making it hard to credit any one ingredient. Few-shot results can depend on how examples are selected, formatted, and ordered; evaluation itself can be sensitive to prompt variations.

The seminar follows that tension from prompt design to measurement: when should we explain, when should we demonstrate, and how can we tell whether either actually helped?

Five questions worth arguing about

  1. 1When outputs miss the mark, should teams first sharpen the task statement or show the model what success looks like?
  2. 2Can a small demonstration communicate judgment that no practical instruction can fully articulate?
  3. 3At what point does adding context merely disguise a model capability gap?
  4. 4Do retrieved examples improve generalization, or make results more sensitive to ordering and format?
  5. 5What evidence is strong enough to justify keeping a more elaborate prompt in production?

The Sessions

1Session 1start here

The Prompt Is a Specification

The problem

Instructions and examples are both ways of conditioning a model, but they do different work. Instructions state goals and constraints; demonstrations provide concrete input-output patterns. The distinction matters because a prompt that seems “clear” to its author may leave the model to infer the expected format, boundary cases, or level of detail.

Eugene Yan offers a useful engineering mental model and warns that examples can narrow behavior if they fail to represent production inputs. OpenAI’s older cookbook frames instructions and demonstrations as distinct ways to steer a model. Read together, they invite a practical starting question: before adding examples, can the desired behavior be stated and evaluated clearly? That baseline leads to the harder question of what examples convey that prose does not.

2Session 2

Examples as Compressed Policy

The problem

A demonstration may communicate a preference more efficiently than a list of rules: tone, what counts as relevant, and how to handle a borderline case. But examples can also leave rules implicit, or encourage imitation of accidental features. That makes the choice less “instructions versus examples” than “which parts of the desired behavior are expressible as rules, and which need to be shown?”

Anthropic’s business case reports a 20% accuracy improvement after combining few-shot examples with expert-recommended workflow and other changes; it is a concrete deployment story, not an isolated experiment comparing prompt ingredients. LangChain’s experiments make the contrast more explicit: instruction optimization helped surface clear patterns in some tasks, while few-shot prompts did better at communicating nuance in another. Together, the readings suggest that the right representation depends on what the task’s “policy” contains—and set up the question of what any prompt can do when a model lacks the needed capability.

3Session 3

Capability Before Cleverness

The problem

If a model already understands the task, examples may mainly steer format or preferences. If it lacks relevant knowledge or capability, additional context may help—but a prompt cannot reliably create an ability the model does not have. Distinguishing those cases is difficult: poor outputs can signal unclear instructions, missing task knowledge, weak reasoning, or an inadequate evaluation set.

DeepMind’s Flamingo post is a foundational example of few-shot prompting enabling adaptation across multimodal tasks, including results with only a handful of examples. Anthropic’s 2025 context-engineering discussion offers a later engineering perspective: begin with a minimal prompt and a capable model, then add instructions and examples in response to observed failures. These differ in emphasis—demonstrated model capability versus deployed-system guidance—but together they shift the choice from “which prompt trick?” to “what is the failure, and is it prompt-fixable?” The next session examines how examples themselves can be selected and arranged.

4Session 4

Three Shots, or Thirteen?

The problem

Once examples help, the next decisions are not trivial: how many, which ones, in what format, and in what order? More demonstrations can raise token costs, introduce contradictory patterns, or shift what the model attends to. Dynamically retrieving similar examples may help on diverse inputs, but similarity is not the same as representativeness.

LangChain reports that a few dynamically selected examples often matched or beat a larger fixed set in tool-calling experiments, with effects that differed across models and formatting choices. Hugging Face’s evaluation experiments complicate the apparent gains: minor formatting changes and even shot ordering can change benchmark scores. One source studies deployed tool behavior; the other studies evaluation sensitivity. Their tension is useful: are examples improving the model’s behavior, or sometimes changing the conditions under which we observe it? That concern makes evaluation design central to the final session.

5Session 5finish here

Did the Prompt Actually Improve?

The problem

A prompt change is only an improvement relative to a task definition, a dataset, and a measurement method. If examples used to tune the prompt also appear in its evaluation set, apparent gains may reflect overfitting. If an LLM judge is used, its own examples and criteria need validation too.

Hamel Husain argues for domain-expert labels, held-out evaluation, and error analysis when validating an LLM judge. OpenAI’s cookbook recipe demonstrates a prompt-optimization workflow that checks candidate instructions against labeled examples; it is useful as a method, though its archived recipe and model-specific details should not be treated as current model guidance. Together, they frame evaluation not as a final score but as the discipline that lets teams compare instructions, examples, and model choices without mistaking a prompt-specific win for robust improvement. The seminar ends where iteration begins: what should the next test change?