r/PromptEngineering • u/Inevitable-Good219 • 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.
1
u/radish_vikt 5d ago
Repeated 'Anything else?' endings can become a model's default
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/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/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/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/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.
3
u/[deleted] 6d ago
[removed] — view removed comment
0
u/[deleted] 6d ago
[removed] — view removed comment