Getting Real Work out of a ModelLesson 23 of 72

Module 3 · Teaching by example

State the rule, then show it

In this lesson

  • 8 min read
  • 7 reading sections
  • Knowledge check
  • Lesson 5 of 9 in this chapter

This chapter’s goalBuild a small labelled example set that transmits a rule prose cannot state, identify the unintended patterns your examples teach, and demonstrate by test whether adding them improved the output at all.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmWatch3:01Not available
Full audiobookNot availableNot available
The compact form of a working promptThe ruleone or two sentences; generalises to cases you nevershowedTwo to four annotated examplesawkward ones, each with a short reason for itslabel; pins the hard casesThe fallbackwhat to do when neither the rule nor an examplecovers itUnder two hundred words. Each part does a different job, so nothing is repeated and nothing competes.When a prompt seems to need lengthening, ask which of the three is missing; usually it is thefallback, and it is one line.
Under two hundred words. Each part does a different job, so nothing is repeated and nothing competes. When a prompt seems to need lengthening, ask which of the three is missing; usually it is the fallback, and it is one line.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 9Free · no account needed
Lesson steps

Neither alone is as good as both

A stated rule generalises but is often imprecise. An example is precise but does not tell you what it is an example of. Put them together and each covers the other’s weakness.

Rule alone:

Classify by what the customer is asking for, not by what went wrong.

Clear, and it leaves you wondering how it applies to a parcel that arrived smashed.

Example alone:

Text
"My parcel arrived smashed and I want my money back." → refund

Precise, and the model has to infer why. It might infer your rule. It might infer “anything mentioning money is a refund”, which will fail on the next message.

Together:

Text
Classify by what the customer is asking for, not by what went wrong.

"My parcel arrived smashed and I want my money back." → refund
   (damage is what went wrong; money is what they want)

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the AI, Actually Explained exam.

Stuck on something?Ask Asha, your AI tutor

How to cite: Addaly (2026) ‘State the rule, then show it’, in Getting Real Work out of a Model. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/prompting/rules-and-examples-together (Accessed: 29 November 2026).