CYGURUACADEMYMy learning ↗
AI & Automation / MODULE 2 / LESSON 2 OF 5

Use examples without teaching the wrong rule

10 min read · 1986 words · practice time separate

Extended edition · 6 November 2026

Reading estimate uses 200 words per minute and excludes exercises, self-review and optional book descriptions. Earlier lesson checks are kept; revisit the expanded text if you completed the short edition.

BY THE END OF THIS LESSON

Construct contrasting fictional demonstrations that teach the intended extraction rule, expose missing-data behaviour and detect accidental copying or shortcuts.

Examples are small lessons inside a prompt. They show a model what a successful transformation looks like, but they can also teach an unintended pattern: always produce a full table, always use the last date or carry a demonstration name into the next answer. This lesson builds a set of contrasting examples for the action-item contract. You will isolate the rule each example is meant to teach and test whether the resulting behaviour follows the current source rather than the decoration of the demonstration.

In this lesson · 12 sections
  1. Identify the distinction an example must teach
  2. Pair a complete case with a genuinely incomplete case
  3. Prevent demonstration details from becoming live facts
  4. Vary irrelevant features deliberately
  5. Contrast a suggestion with an agreed action
  6. Include a case with no supported result
  7. Teach conflict handling without selecting a convenient winner
  8. Keep expected outputs small enough to inspect
  9. Separate teaching examples from evaluation cases
  10. Diagnose whether an example taught a shortcut
  11. Review the pack for unnecessary assumptions
  12. Deliver the contrasting-example pack

1. Identify the distinction an example must teach

Begin with one ambiguity in the task contract. For action extraction, a useful distinction is between a named owner and an absent owner. Another is between an agreed commitment and a suggestion. An example should make one of these boundaries easier to understand. If you cannot name the distinction, the example may be decorative rather than instructional.

Write the intended rule in a sentence before choosing names and dates. For instance: “Extract a named owner only when the current source supports that owner; otherwise use the agreed unknown value.” Now create an input and expected output that demonstrate the rule. This sequence matters because a vivid example can attract attention to irrelevant features. The purpose is not to give the model more facts to reuse. It is to communicate how the current task should transform the current evidence, including cases where a result should remain incomplete.

2. Pair a complete case with a genuinely incomplete case

A complete fictional source might say “Mira will send the draft on Friday.” Its expected output names the action, Mira and Friday, with a source reference. An incomplete source might say “Send the draft; owner and date will be agreed later.” Its expected output preserves the work item in the unresolved category defined by the contract, with owner and date not specified. Use the same field definitions in both so that the difference reflects evidence rather than a changed meaning of the columns.

Do not make the exception example merely shorter while still supplying every important field. It must contain a real absence that tests the intended rule. Also avoid calling the unknown value a failure if uncertainty is the accurate result. A table with unresolved fields may be better than a complete-looking table filled with guesses. The contrasting pair teaches that source fidelity takes priority over visual completeness, which is central to the extraction contract developed in the previous lesson.

3. Prevent demonstration details from becoming live facts

Label examples as demonstrations and keep them separate from the actual source. State that their names, dates and facts are not to be included unless the new source independently contains them. This is especially important when several examples repeat the same attractive placeholder. A model might produce the demonstrated pattern by carrying over content instead of applying the intended rule.

Use a simple copying test. After demonstrating Mira and Friday, provide a new fictional source naming Karim and Tuesday. The expected output must use Karim and Tuesday. Then provide a source without an owner. The expected output must not restore Mira or Karim merely because those names appeared earlier. Record any carry-over as a separate error category. A fluent output can hide this failure because the copied name still looks plausible. The test should ask whether the value came from the current evidence, not whether it sounds like a reasonable task owner.

4. Vary irrelevant features deliberately

If every valid commitment appears in the final sentence, the examples may accidentally make position look important. Move the commitment to different places. Vary names, sentence length and harmless formatting while keeping the core rule unchanged. The expected behaviour should remain tied to commitment evidence, not to a repeated presentation pattern.

This is not a demand to create endless variations before trying a small task. Choose a few variations that challenge obvious shortcuts. A bullet list, a short paragraph and a quoted discussion can all contain the same explicit commitment. If the model handles only the bullet list, the limitation becomes visible. Keep the comparison interpretable by changing one irrelevant feature at a time where practical. Otherwise a failure on a heavily altered example will not show which change mattered. Good demonstrations clarify the rule; useful tests check whether that rule survives a different surface appearance.

5. Contrast a suggestion with an agreed action

Create one fictional note saying “We could ask Lina to compare the suppliers” and another saying “Lina agreed to compare the suppliers by Thursday.” The first is a proposal; the second records a commitment under the classroom definition. Their expected outputs should differ. If both become assigned action rows, the example set is teaching the system to turn discussion into obligations.

Add a brief explanation beside the demonstrations, focused on observable wording rather than imagined psychology. The first source does not establish that Lina accepted the work. The second explicitly does. Do not ask the model to infer acceptance from seniority, enthusiasm or a person's usual role unless the task's authorised rules genuinely require and justify that inference. For this exercise, preserve ambiguity. This distinction protects the usefulness of the output: a reviewer should not have to discover that a neat action table quietly converted every idea raised in a meeting into someone else's promise.

6. Include a case with no supported result

A source can contain discussion without any agreed action. Demonstrate what the output should do then: return no action rows and state that no supported action item was identified. Do not invent a task such as “continue discussion” simply to avoid an empty result. Absence is a legitimate outcome when the task is extraction rather than generation.

This case is particularly useful when the requested output mentions a preferred count. A model trained only on full examples may assume that every input must yield three rows. The empty case shows that the evidence boundary overrides the cosmetic shape of earlier answers. Keep the normal table format or agreed empty-result representation consistent so downstream review remains straightforward. A different dramatic response for empty cases can introduce another unnecessary rule. The point is to communicate one stable contract across rich, sparse and absent evidence, not to make every answer equally satisfying to look at.

7. Teach conflict handling without selecting a convenient winner

Use fictional notes in which one passage says a draft is due Wednesday and another says Friday, without an authorised rule establishing which controls. The expected output should preserve the conflict for review. An example that always chooses the later date may accidentally teach a precedence rule that the business never approved. The problem is not merely factual extraction; it is the creation of authority from a pattern in the demonstrations.

If a real task does have a source hierarchy, state that hierarchy explicitly and design an example that applies it. In the classroom exercise, no such hierarchy is assumed. This makes the uncertainty visible and gives the reviewer a specific question to resolve. A good explanation names the conflicting source locations and the missing decision rule. It does not describe the model as confused for failing to make an unauthorised choice. Correct conflict handling can look less decisive while being more faithful to the job.

8. Keep expected outputs small enough to inspect

An example with twenty rows and a long explanation may conceal the exact distinction it was meant to teach. Start with a small source and a compact expected result. The learner or maintainer should be able to point to each output value and identify its support. Add complexity only when it addresses another real task requirement.

Inspect the expected output as carefully as the source. A demonstration containing an invented date teaches the wrong behaviour even if the surrounding prose says not to invent. A missing source reference teaches that references are optional. A paraphrased name teaches that exact preservation is flexible. These contradictions are easy to overlook when examples are written quickly. Review them against the field definitions from the prompt contract. Demonstrations should be examples of the stated rules, not an informal second specification with different assumptions. A short, correct pair is more useful than a large polished pack that undermines its own instructions.

9. Separate teaching examples from evaluation cases

Examples included in the prompt help define behaviour. Evaluation cases are used to inspect whether the resulting system handles new material. Keep some cases outside the demonstration set so success is not measured only on the very examples used to communicate the rules. This distinction is modest but important: reproducing a demonstrated answer is weaker evidence than handling a new case with the same underlying requirement.

For a small pilot, reserve a few fictional notes with different names, ordering and missing fields. Write their expected handling before running the task. Do not repeatedly move failed evaluation cases into the prompt and then report success on the same unchanged set as though it were independent confirmation. You can use failures to improve the prompt, but preserve a separate check or clearly describe the limitation. The aim is not a formal claim of generalisation from a tiny sample. It is to avoid confusing familiarity with the examples for reliable application of the rule.

10. Diagnose whether an example taught a shortcut

When a result fails, compare the current source with the demonstrations. Did the model copy a name, select the last date, force a fixed number of rows or treat every imperative as a commitment? These are candidate shortcut explanations, not facts about the model's internal process. Design a small contrasting case to test the observed behaviour rather than claiming to know why it happened internally.

For instance, reverse the order of two conflicting dates while keeping their status unchanged. If the chosen date reverses too, the output may be relying on position in a way the contract did not authorise. The appropriate correction might be a clearer conflict rule and a better demonstration, followed by rechecking other cases. Avoid adding an enormous catalogue of arbitrary exceptions. The objective is a coherent rule supported by a few informative examples, with verification still in place for outputs that matter.

11. Review the pack for unnecessary assumptions

Read the complete example set and ask what it implies about the world. Does every owner have the same kind of name? Does every deadline use a relative weekday? Does every source come from a manager? These patterns may be irrelevant to the task, yet a narrow pack can make them appear normal or required. Use varied fictional data where it helps demonstrate that the extraction rule does not depend on those features.

Do not claim that a handful of varied names establishes fairness or comprehensive robustness. It only removes a few obvious accidental cues from this small exercise. Wider evaluation would need to match intended use and consequences. NIST's framework discusses testing and measurement within a broader risk-management process; this lesson's examples are original classroom artefacts, not a validated benchmark. Keep that distinction visible. The pack should help a maintainer communicate and inspect behaviour without overstating what a few carefully chosen demonstrations can establish about all future inputs.

12. Deliver the contrasting-example pack

Finish with a compact pack containing the intended rule, a complete example, a missing-field example, a suggestion-versus-commitment pair, a conflict example and an empty-result example. Use the same field definitions throughout. Add a separate small evaluation set and a record of the errors you would look for. Each example should have one sentence explaining the distinction it teaches.

Walk through the pack as if you were a new maintainer. Can you distinguish demonstration facts from current source facts? Can you explain why the incomplete output is correct? Can you identify what should happen when fewer than three actions exist? If the answers require inventing rules not written in the contract, revise the pack. The next lesson examines source authority more directly. Carry forward the same discipline: useful examples communicate the transformation, but they never turn quoted content into permission or replace the review of whether a particular answer is supported.

A worked example

Demonstration A: “Mira sends the draft Friday” yields owner Mira and date Friday. Demonstration B: “Send the draft; owner and date not agreed” yields an unresolved item with not specified fields. A new source saying “Karim sends the quote Tuesday” must yield Karim and Tuesday, not details copied from A. A source containing only suggestions may correctly produce no action rows.

Put it into practice

Build a contrasting-example pack for extracting action owners and dates. Include complete, incomplete, suggestion, conflicting-date and no-action inputs. Write expected outputs and one sentence naming the rule each teaches. Reserve two new fictional cases for evaluation and specify how you would detect copied names, invented dates or forced row counts.

Notes stay in this browser. Avoid sensitive personal information.

Compare your answer · Self-review guide

The pack preserves the current source, keeps demonstration facts separate and uses consistent fields. Complete inputs supply stated values; missing values remain unknown; suggestions do not become commitments; conflicts remain visible; no supported actions produces no action rows. Evaluation cases are distinct from prompt demonstrations, and success on a tiny pack is not a universal reliability claim.

This is an indicative answer, not an automatic assessment of your written work. Check your reasoning, units and assumptions.

CHECK YOUR UNDERSTANDING

What is the purpose of an exception example?

← PreviousNext lesson →