Prompting with Documents and Existing Content
- Apply the instruction-first context placement technique and explain why it produces more targeted document analysis than context-first placement
- Request evidence before conclusions to guard against confabulation in document-based prompting
- Build the citation habit into document prompting to enable rapid verification and catch confabulation before acting on it
You Paste a Document and Ask a Question. The Answer Is Shallow. Here's Why.
One of the most common intermediate use cases is also one of the most commonly done poorly: pasting a document into a prompt and asking the AI to do something with it. Summarize this report. Extract the key points. Draft a response based on this email thread. Rewrite this policy in plain language.
These tasks fail for a specific reason that most users do not diagnose: the briefing around the document is as important as the document itself. A document dropped into a prompt without a structured brief gives the AI a pile of information with no clear instruction about what matters, what to do with it, or what good output looks like. The result is a generic response that could have been generated without the document — because the model has no reason to privilege the document's content over its general knowledge.
Context Placement: Where Your Document Goes Matters
Research on document-grounded prompting has established a consistent finding: instruction placement affects output quality. For most current models, the most reliable pattern is instruction-first — state clearly what you want before presenting the document. This anchors the model's processing so it reads the document through the lens of your task rather than summarizing it on default terms.
Context-first (weaker): "[paste 2,000-word document] ... What are the main risks in this contract?"
Instruction-first (stronger): "I am reviewing a service contract as a small business owner. I want you to identify all clauses that could expose me to liability or lock me into terms I cannot exit. Then I will paste the contract. Read it with that specific lens — not as a general summary, but as a risk scan. [paste document]"
The instruction-first approach tells the model what to look for before it reads the document. The output is a targeted risk scan rather than a general overview.
Four Document Grounding Techniques
These four techniques reliably improve document-based prompting:
- Anchored reading: State your purpose before the document. "I need to respond to a client complaint. Read the following email thread to understand the history before I ask for your help drafting a response."
- Evidence extraction: Ask for specific evidence from the document, not general impressions. "List every specific commitment this vendor made in this proposal. Use exact language from the document."
- Gap identification: Ask what the document does not say that matters for your situation. "Based on this job description, what skills and requirements appear to be important to them that are not explicitly listed?"
- Transformation: Give the document a new form, audience, or purpose. "Rewrite this technical specification as a one-page briefing for a non-technical executive. Preserve all key decisions but remove implementation detail."
Asking for Evidence, Not Conclusions
The most reliable document prompting technique is asking the model to produce evidence before conclusions. This guards against the model's tendency to generate plausible-sounding analysis that is not actually grounded in the document.
Conclusion-first (risky): "What does this quarterly report say about the company's growth strategy?"
Evidence-first (reliable): "Find every sentence or passage in this quarterly report that relates to the company's growth strategy. Quote each one exactly, then briefly note what it implies."
The evidence-first version forces the model to cite before it concludes. If you then ask it to synthesize the implications, you have a synthesis grounded in identified evidence rather than impressions. You can also spot-check the quotes against the source.
Working with Long Documents
When a document is very long, do not try to process everything in one pass. Break the task: ask the model to identify which sections are relevant to your question first, then work through those sections. This is more reliable than asking for a comprehensive analysis of a document the model may be processing unevenly.
For documents with clear sections or structure, name the sections explicitly: "Focus on sections 3 and 5 of this report — the market analysis and the financial projections. Ignore the background sections." Explicit scope reduces the chance of the model pulling from sections that are not relevant to your question.
The Citation Habit
For any document-grounded analysis you plan to act on, make citation a default. "For each finding, cite the paragraph number or section header you drew from." This creates an audit trail and makes it possible to verify the model's conclusions against the source in a few seconds. Without citations, you have to re-read the original to verify anything — which defeats much of the purpose of using AI for document analysis in the first place.
The citation habit also surfaces hallucinations quickly. If a conclusion cannot be tied back to a specific passage, it is likely confabulation — the model synthesizing something plausible that is not actually in the document. Citations force the issue.
- Instruction-first placement anchors the model's reading of a document through the lens of your task — state what you want before pasting the document, not after
- Evidence extraction — asking for exact quotes before synthesis — is the most reliable technique for document analysis because it forces the model to cite before it concludes
- The gap identification technique surfaces what a document implies but does not explicitly say, which is often more valuable than what it does say
- Citations in document-based analysis create an audit trail; any finding that cannot be tied to a specific passage is likely confabulation and should be verified against the source
- The transformation technique — giving a document a new audience, form, or purpose — is among the highest-value document prompting tasks because the model handles the register shift while you retain full control over the source content