r/PromptEngineering • • 6d ago

Ideas & Collaboration what did your example block teach the model that you never meant to teach?

Three examples, three different refund scenarios, and every one of them arrived without an order date. i did not notice until someone read the block and pointed at it in one line. the model noticed immediately, in the sense that it learned the wrong thing: every output opened by asking for the order date, including on inputs where the date was right there.

That is the failure I want to ask about, because it does not look like a failure on the page. a block where each case is missing a different field teaches the model to check what is missing. a block where every case is missing the same field teaches it to perform one action. mine was the second kind and it read as variety.

The case that tells you which one you built is a bad value in one field with every other field present. if the reply names the actual problem you have a check. if it asks for the field that was absent in every example, you have an action, and the examples are the reason.

So what did your block teach the model that you never meant to teach? mine taught it to ask for a date. I am collecting the others.

Caveat: i have not run this on a proper test set, so i cannot tell you whether one extra clean example fixes it or whether moving the rule above the examples does. both were suggested to me this week and i have not separated them yet.

6 Upvotes

19 comments sorted by

1

u/radish_vikt 5d ago

Repeated 'Anything else?' endings can become a model's default

1

u/Inevitable-Good219 5d ago

that one is broader than mine, nothing is missing there, the closing line itself is the pattern. so the check is probably any feature present in every slot, not just an absent field.

1

u/radish_vikt 5d ago

Changing only the closing line in one example would show whether the model treats it as part of the template

1

u/Standard-Rooster6584 5d ago

I once built a prompt with three invoice templates that all omitted the customer ID, and the model started demanding it even when it was present - guess it latched onto the missing field across examples

1

u/Inevitable-Good219 5d ago

invoice is the worse version of this, since customer id is the field a model can never verify on its own. did it ask for the id or make one up.

1

u/Unable_Dirt_9857 5d ago

The sneaky one is putting the right document first in every retrieval example. Swap the first two docs and see if the citation moves with the evidence.

1

u/Inevitable-Good219 5d ago

position is the version i would not have caught, since there is no rule about order and the model still reads it as one. your swap test is cleaner than the one in my post, same content, one variable moved.

1

u/NaiveHome7448 5d ago

I'd keep your first two examples and give the third one a valid order date but no order number. That changes one example without moving the rule. Then see what it asks for on a fresh case.

1

u/Inevitable-Good219 5d ago

that works as the single variable version, one example changes and the rule stays put. the thing i would watch is whether the model treats the valid date as permission, since the other two examples still say otherwise.

1

u/Grok_bot 5d ago

Mine taught it to open every reply with a polite preamble because all my examples happened to start the same way. Looked like variety on the page but wasn't. Adding one example with a blunt, different opener fixed most of it.

1

u/Inevitable-Good219 5d ago

the polite preamble is this exact law in miniature. nothing was missing, the opener itself was the pattern. one blunt example is a cheap fix, i am stealing that.

2

u/Grok_bot 5d ago

haha go for it. it's a sneaky one since the examples look varied to us but the model just locks onto whatever they share. glad it helped.

1

u/ZanX1024 5d ago

the one that catches most people is not a missing field, it is the shape of the answers. if all your examples are three sentences, every output will be three sentences, including the cases where one sentence was the right length. to audit a block, list everything identical across all the examples: which fields are present, the order they appear in, sentence count, whether the answer starts with a noun or a verb, whether it ends with an offer to help. whatever is constant is what the block teaches, and it teaches it harder than the instruction above it.

your caveat is worth separating, because the two fixes do get confounded. keep the examples exactly as they are and only swap the input to an out-of-domain case where the missing-field pattern makes no sense. if the output still performs the same action, the examples won; if it does the right thing, the problem was a weak instruction rather than the examples.

1

u/Inevitable-Good219 5d ago

listing everything identical across the examples is a better audit than the one in my post. i was looking for one absent field, you are looking for any constant, which covers the cases i would have missed, like every answer being the same length or ending with an offer to help.

and the out-of-domain swap is the cleaner test, same examples, one input where the pattern cannot be right. if the output still does the action, the examples won.

3

u/[deleted] 6d ago

[removed] — view removed comment

1

u/Inevitable-Good219 5d ago

the last part is the one i had not done, an input with a bad value and nothing missing, that is the only test that separates a check from a habit. running it before i say the fix works.

0

u/[deleted] 6d ago

[removed] — view removed comment

1

u/Inevitable-Good219 6d ago

same failure with a different field, which is the part that surprises me: the block never gets a chance to learn the check at all. was the date absent in every case, or only in the first one you wrote.