- Choose examples that clarify a decision rule.
- Include an edge case rather than only ideal inputs.
- Keep example labels independent of task data.
Examples can communicate a pattern more clearly than another paragraph of instructions. Their value depends on what they teach. Several easy examples may all confirm the same obvious case, while one carefully chosen boundary case reveals how the requested classification should work.
Choose the uncertainty you need to resolve
For a fictional support classifier, the difficult distinction may be an unanswered question versus a complaint about a confirmed failure. Write that distinction in plain language before selecting examples. A greeting containing no request should have its own handling rule if it appears in real work. Examples should illuminate these boundaries rather than merely repeat the most common label until the response imitates it.
Pair similar inputs with different reasons
Use two short notes that share vocabulary but differ in evidence: can I export this report and export failed with error E7. Label the first as a capability question and the second as a failure report. Explain the observed difference. Avoid teaching labels through irrelevant cues such as message length, names or punctuation, because the assistant may follow those cues instead of the intended rule.
Check a held-out case
Reserve one fictional message that is not shown as an example. Apply the prompt and compare the result with the rule you wrote beforehand. If it fails, inspect whether the examples contradicted the instruction or omitted a needed category. Do not change the expected label merely to agree with the generated answer. Document the remaining ambiguity and let the workflow request clarification where the evidence is insufficient.
Illustrative worked example — Question versus failure
Supplied input
Example1:Can I export a report?→question. Example2:Export returned E7→failure. Held-out:Export options are unclear.
Example result to inspect
The held-out message needs clarification unless the category rule explicitly covers usability confusion.
Shared vocabulary does not settle the label; the evidence and the defined category boundary do.
This is an authored teaching example, not a recorded live provider run or an independent performance test.
Make the idea concrete.
- Write a two-category rule and two contrasting examples.
- Reserve a third fictional message before running the prompt.
- Explain the result using the rule, not superficial wording.
What a useful outcome looks like
A small example set that teaches a meaningful distinction and exposes ambiguity honestly.
Ask for reasoning you can verify.
Use fictional or permitted data. This is a copyable brief for a separate approved model; no model is called from this article.
Review these fictional demonstrations for conflicting rules and superficial cues. Suggest one boundary case without supplying its expected result to the tested assistant. Keep uncertainty visible when the category definition is incomplete.
Turn reading into a reviewed checkpoint.
Complete the manual exercise, review each item, then answer the evidence question. This records self-study, not independent assessment of expertise.
Review the checklist and pass the question to save this lesson.
Primary references
References support further checking; cited organizations do not endorse AgentX. This guide is original AI-assisted educational content with illustrative examples. Read the editorial policy or report a correction.
Continue with a related task.
Write the task before choosing a persona
A role such as expert analyst can suggest a tone, but it cannot tell the assistant which work to complete or establish expertise.
Give context a visible trust boundary
A prompt often combines the user’s task with text copied from somewhere else.
Turn output requirements into a small contract
An output contract describes what the response must contain and how it should represent it.