Skip to content
Training

Teaching by example

Why one great example in a prompt beats a page of instructions.

By Priya Kapoor 4 min read 6 comments
Treats from the Context Window. June 24.

Saying what to do when something blocks the task stopped the polite shrugs. When an answer is good, I say exactly what made it good, so the next one keeps it. Stating the behavior I wanted, in plain words, did more than any list of things to avoid. This is the part I wish someone had told me in my first week. I learned this the slow way, so you can learn it the quick way.

Praise that names the behavior teaches more than praise that names the mood. When an answer is good, I say exactly what made it good, so the next one keeps it. A clear goal turns a long answer into a useful one. This is the part I wish someone had told me in my first week.

Train your own

Most of my best changes were deletions: one fewer adjective, one fewer always. The assistant reads my tone as part of the instructions, so I try to sound like the answers I want. I keep one sentence at the top of every system prompt that says who the assistant is for. Saying what to do when something blocks the task stopped the polite shrugs. Praise that names the behavior teaches more than praise that names the mood.

I describe the temperament first and let the rules follow from it. I test every rule on three real tasks from my week before it earns a place in the prompt. Rules written as prohibitions made the answers more hedged, not more careful.

I learned this the slow way, so you can learn it the quick way.

A reader, by email

What the rules looked like before

I would rather have one clear sentence than three careful ones. I keep every version, because the failures teach more than the wins. A clear goal turns a long answer into a useful one. When an answer is good, I say exactly what made it good, so the next one keeps it.

If the answer surprises you, the prompt was probably ambiguous. Warm on its own drifts toward syrup, so I give the warmth a floor: plain words and no gushing. The examples in this post come from my own week, lightly edited. Patience in the prompt shows up as patience in the answer.

  • I keep one sentence at the top of every system prompt that says who the assistant is for
  • I describe the temperament first and let the rules follow from it
  • Patience, repetition and a treat when it gets it right: that is the whole method

Feedback it can use

The examples in this post come from my own week, lightly edited. The fastest feedback is specific feedback, delivered while the example is still on the screen. I would rather have one clear sentence than three careful ones. Patience in the prompt shows up as patience in the answer. Small, checkable steps are easier to trust than one big leap.

The assistant reads my tone as part of the instructions, so I try to sound like the answers I want. If a rule only fixes one odd answer, it goes in my notes, not in the prompt. A rule that needs a paragraph of exceptions is usually two rules pretending to be one.

What I would change next time

I would rather have one clear sentence than three careful ones. I describe the temperament first and let the rules follow from it. Saying what to do when something blocks the task stopped the polite shrugs. Praise that names the behavior teaches more than praise that names the mood.

Stating the behavior I wanted, in plain words, did more than any list of things to avoid. I test every rule on three real tasks from my week before it earns a place in the prompt. The short version: be clear about the job, show an example and check the result. When I changed the order of the rules, the most important one started winning.

Written by Priya Kapoor

Priya runs prompt evaluations for a support team and tests every tip on real tickets before it reaches the blog.

More from Priya

6 comments

  1. Kim Tran

    Used the handover file idea on a two-week project. Huge difference.

    Reply to Kim Tran
  2. Jo Rivera

    Saving this. The part about deleting rules instead of adding them is so true.

    Reply to Jo Rivera
  3. Dan Wells

    Did you test this through the API as well, or only in the app?

    Reply to Dan Wells
  4. Priya K.

    This is the first explanation of skills that actually made sense to me.

    Reply to Priya K.
  5. Jo Rivera

    I tried this on our support macros and the replies got noticeably shorter. In a good way.

    Reply to Jo Rivera

Leave a comment

Your email is never shown. Comments are read before they appear.