Paste the long material first, ask your question last

Prompt Lab card: Paste the long material first, ask your question last

Written by Mohammad Nasravi inنوشته شده توسط محمد نصراوی در

With a long document — a research report, a transcript, a year of social comments — order matters. Put the material at the top and your question at the very end.

Less effective

Summarise the three biggest complaints in these comments: [5,000 pasted comments]

More effective

[5,000 pasted comments inside <comments> tags] — then, at the end: Read the comments above. What are the three biggest complaints, with how often each appears and two verbatim quotes for each?

The prompt

Copy-ready prompt

<documents>
<document index="1">
<source>[FILE NAME OR SOURCE]</source>
<document_content>
[PASTE THE LONG MATERIAL HERE]
</document_content>
</document>
</documents>

Using only the documents above, answer: [YOUR QUESTION].
Quote the passages you rely on before giving your answer.

Why it works

Anthropic advises placing long documents “near the top of your prompt, above your query”, and reports that queries at the end can improve response quality by up to 30 percent in its tests, especially with multiple documents. Google’s Gemini guide gives the same rule: supply large context blocks first, questions last.

Use it for

Consumer research, focus-group transcripts, review mining, competitor reports. Asking the model to quote before it answers also makes it easy for you to check the answer against the source.

Sources

  • Anthropic — Claude prompting best practices — platform.claude.com (accessed 28 Sep 2026)
  • Google — Prompt design strategies for the Gemini API (updated 17 Sep 2026) — ai.google.dev (accessed 28 Sep 2026)

More tricks and templates in the Prompt Lab. Want this applied to your brand’s brief? Start a project.

خبرهای هوش مصنوعی را در تلگرام دنبال کنخلاصهٔ خبرها و برداشتِ من از کارِ واقعی، در کانالِ Nasravi.com در تلگرام.
عضویت در کانال تلگرام

Written by Mohammad Nasravi — AI creative director, in-house at a major FMCG group. Four years putting AI-made commercials past real brand teams, including Shirin Asal campaigns for Gulfood 2026 and Canton Fair 2025. More about the work · Start a project نوشتهٔ محمد نصراوی — کارگردان خلاق هوش مصنوعی، درون یک گروه بزرگ FMCG. چهار سال است کارِ ساخته‌شده با هوش مصنوعی را از فیلتر تیم‌های برند رد می‌کند؛ از جمله کمپین‌های شیرین عسل برای گلفود ۲۰۲۶ و کانتون فر ۲۰۲۵. دربارهٔ کارها · شروع پروژه بقلم محمد نصراوي — مدير إبداعي للذكاء الاصطناعي من داخل مجموعة FMCG كبرى. أربع سنوات من تمرير إعلانات مصنوعة بالذكاء الاصطناعي عبر فرق علامات حقيقية، منها حملات Shirin Asal في جلفود 2026 ومعرض كانتون 2025. المزيد عن العمل · ابدأ مشروعك