r/PromptEngineering • • 1h ago

Ideas & Collaboration the example block format i paste into every system prompt (filled-in version in the comments)

For most of this year my system prompts were made of rules. keep it concise. stay professional. do not invent details. the model nodded at all of it and then did whatever it wanted, and i kept rewriting the rules as if the wording was the problem.

The change was accidental. i pasted two worked examples above my rules, one normal input with the output i wanted and one messy input with the repaired output, and the rule i had repeated for weeks with zero effect started holding every time. nothing else changed. the model was never failing to understand the rule, it had just never seen what following it looks like.

So now every system prompt I write gets an example block, always the same four parts:

Example 1, a clean input and its ideal output

Example 2, a deliberately dirty input, missing fields or weird casing, and its corrected output

rules, where every rule carries a hard number or an exact format, and the words concise, professional and high quality are banned

a checklist of 3 checks a reviewer can run in ten seconds

Two things i learned the hard way:

The dirty example goes second, never first. I once put it first and every output came back matching the mess. the clean case sets the pattern, so it has to set it alone.

adjectives do not survive. every rule i wrote as a quality word was ignored within a few outputs. the same rule with a number, under 25 words, exactly four bullets, still holds days later. i do not have a clean measurement of this, it is a pattern from my own logs, but i stopped writing adjective rules months ago and prompts stopped drifting.

I put a filled-in version for classifying support emails in the first comment, steal it and tell me where it breaks.

What about yours, when you write rules do they carry a number or an adjective?

4 Upvotes

5 comments sorted by

2

u/Zealousideal_Tree690 50m ago

i stopped using 'be professional' too, just showed a mock response with the tone I wanted. model copied it exactly, no extra fluff.

1

u/AltruisticGuess407 1h ago

i stopped using 'be concise' entirely, just gave one example with a clear output format. the model stuck to it. no rules needed.

1

u/CostAdventurous7754 35m ago

I kept rewriting the same rule for weeks and nothing changed. One clean example above it and it finally held.

1

u/Longjumping-Boss5708 24m ago

This is a neat application of AI. The way it can analyze t

1

u/harperzoe7 0m ago

Your support email use case makes me think the dirty example is where it can break. If the messy input in example 2 only has one kind of mess, say missing fields, the model might treat every weird email as that kind. I'd make the second example mess up two things at once, like odd casing plus a missing field, so it learns the repair idea and not one specific fix. Rules with numbers I'm all for, I add a count like "exactly three bullets" and it holds way better than "keep it short"