Restating the question right before the answer position anchors the task in the recency slot, where attention is strongest, and prevents the model from drifting into 'summarize the evidence' mode.
Imagine asking a friend a specific question, then handing them a 200-page report and asking them to answer using the report. By the time they have read the report, the specific question has faded; they will tend to summarize the report instead of answering you. Now imagine you slip the question onto a sticky note and attach it to the last page. Right when they finish reading and pick up the pen, the question is the freshest thing they saw. They answer the question, not the report. The restated question is that sticky note. It works for the same reason: it puts the goal where attention is strongest, right before the answer.
Detailed answer & concept explanation~6 min readEverything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
4 to 5 min: explain the recency mechanism, walk through the on topic but off question failure mode, and demonstrate the restate pattern with placement before vs after the chunks.
Real products, models, and research that use this idea.
- Anthropic's prompt engineering guide for Claude explicitly recommends placing the user query both before and after the document content for long-document QA.
- OpenAI's RAG documentation suggests structuring the prompt as instructions, then context, then question (the question last, by design).
- LangChain's `create_stuff_documents_chain` defaults to placing the question at the bottom of the assembled prompt below the documents.
- LlamaIndex's response synthesizer templates put `Query: {query}` at the end of the prompt, after `Context: {context}`.
- Cohere's command-r model card calls out the recency-question pattern as part of its retrieval-aware prompt template.
What an interviewer would ask next. Try answering before peeking at the approach.
QWhat happens if you restate the question multiple times throughout the prompt?
QHow does this pattern interact with structured-output schemas?
Don't say thisRed flags and common mistakes that signal junior thinking. Click to expand.
Red flags and common mistakes that signal junior thinking. Click to expand.
Placing the user question only at the top of a long RAG prompt, then watching the model summarize the retrieved chunks instead of answering the actual question.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.
Same topic, related formats. Practice these next.