Paste the long document first and ask your question last
When you paste a long document into an AI chat, put the document at the top and your question at the very bottom, then check the page the answer quotes.
Why it matters
Type the question first and paste 30 pages under it, and the AI can answer from the wrong part of the document.
Anthropic's prompting docs say: "Put long-form data at the top" and "Queries at the end can improve response quality by up to 30 percent in tests, especially with complex, multidocument inputs."
Same pages, same question. Only the order changes.
Do this
- Start a new chat.
- Paste the whole document first: the policy, contract, manual or report.
- Put your question on its own line at the very bottom.
- Ask the AI to name the page or section its answer comes from.
- Open that page yourself and check it says what the AI says.
A template to paste into any AI chat
<paste the full document here> Using only the document above, answer this question and name the page or section your answer comes from: <your question here>
One thing to keep in mind: The AI only knows the pages you pasted. If a page is missing, the answer is missing too, so check the page number it gives you.
The cancelled flight, the 30-page policy and the page numbers in the video are an example. Source: Anthropic: Prompting best practices, "Long context prompting".
Ask me anything about AI and cloudA paid call on your own setup: your agents, your bill, your plan.Book a call →