M.A.I. Consulting
GuidePractitioner20 September 20263 min read

Prompt patterns that survive contact with real documents

Four structural prompt patterns that hold up on messy real documents, including showing the actual template, naming what to ignore, requesting uncertainty flags and chunking long files.

Naming a handover point, as the last two pieces in this series covered, assumes the tool actually produces something usable at that point. It does not, if the prompt getting it there was written like a demo. Most people learn to prompt from clean, short, obviously-structured example text, and almost no real document in an NGO looks like that: it is a scanned PDF with a wonky header, three donors' worth of inconsistent report templates, redacted names, and a footer repeating on every page.

This piece is a set of patterns that hold up against that mess, not clever tricks, but structural fixes for the specific ways real documents break a prompt that only ever saw tidy demo text.

Why demo prompts fail on real files

A demo prompt works because the example text is short, complete, and has an obvious structure the model can infer without help. A real file is none of those things: it is long, it repeats itself, it mixes several document types under one file name, and important information sits next to boilerplate the model has no way of distinguishing from content unless told. A prompt tuned only on the demo has learned nothing about any of that, and it fails silently rather than with an error, which is the more dangerous failure mode.

Patterns that hold up on messy documents

A prompt that only works on clean text has learned nothing about the job.

The trade-off in writing prompts this way

Writing a prompt with named exceptions, an explicit ignore-list, and a section-by-section structure takes longer than typing a quick throwaway instruction, and for a genuinely short, clean document that extra structure is often wasted effort. The honest answer is that the throwaway prompt's real cost is invisible until it meets a messy file, at which point it does not error, it just produces a wrong answer that looks plausible, and that is a worse failure than a slower prompt because nobody is prompted to go back and check it, which is exactly the verification tax this series covered in the last piece.

The practical takeaway

Write prompts against your real documents, not demo text: show the actual structure, name what to ignore, ask for uncertainty flags alongside extractions, and chunk long files deliberately rather than trusting one long prompt to hold its accuracy to the end.

No external statistic cited; this article presents an internal practical guide rather than third-party evidence.

Series · Redesigning work at task level · part 2 of 7
Keep reading
03 ยท Team AI Training

How should AI be used in my role?

If this is the question on your desk, a thirty-minute call tells you whether the service fits, or that you do not need us yet.