A run brief for a long document set, and a first map

Day 4, 30 minutes · advanced

Goal of this lessonWrite a reusable run brief with rules first, tagged documents and the question last, and use it to get a map of your document set that you check by hand.

Why it matters

With 300,000 tokens of documents in one prompt, a vague question gets a vague answer. Worse, it gets a confident one. The model has to guess what you want, which documents count most and what to do when something is missing. Every guess is a place where an error can slip into your work.

A run brief removes the guessing. It is a fixed block of text that says what the job is, what the documents are, what the answer must look like and what to do when the text does not say. You write it once and reuse it for every pass of the job. Google's own prompting guide for Gemini gives two rules for long material that the brief follows: rules first, documents in the middle, the actual question at the very end.

At the end of this lesson you have a reusable run brief and the first result of the job: a map of your document set, checked against the real table of contents.

The steps

  1. Put the rules at the top. Start with who Argon is in this job, what the job is and the rules that must never be broken. Google's prompting guide says essential rules and the output format belong at the beginning. For a document job, three rules matter most:

    • Answer only from the documents.
    • Give a reference for every claim: the document letter and the section number.
    • Write NOT FOUND when the documents do not say, instead of guessing.
  2. Wrap each document in tags. A tag is a label around a block of text, such as <document id="A" title="Specification"> at the start and </document> at the end. Google's guide recommends clear separators like these, so the model knows where one document stops and the next starts. Use one style and keep to it.

  3. Put the question last. Google's guide says: give all the context first, then the specific question at the very end, after a clear bridge phrase. Google's example is "Based on the information above"; for a document job, "Based on the documents above" works the same way. With half a million characters in between, a question at the top is easy to lose.

  4. Start with a map, not with the real work. The first pass asks for an overview: per document, the main sections, what each is about and where the requirements are. This pass is cheap to check and tells you whether Argon read the whole set. If the map skips a chapter, nothing after it can be trusted. Pick your tool below and follow the steps.

  5. Check the map against the real table of contents. Open your documents and compare three things: are all chapters there, are the section numbers right, and is the chapter that matters most to you described correctly? Correct the map by hand where it is wrong.

  6. Save the brief without the documents. Keep the rules part and the question part in one note. Next pass, you paste the same brief with a new question at the end.

Sem's example

Sem's rules block:

<role>You are a careful bid analyst for a contractor. You work only from the documents below.</role>
<rules>
1. Use only the documents. Do not use outside knowledge about water boards or pumps.
2. Every claim gets a reference: document letter and section number, for example (A 4.3.2).
3. If the documents do not say, write NOT FOUND. Never guess.
4. Where documents disagree, show both and their references. The Q and A note (C) is newer than A and B.
5. Answer in English. Keep amounts, dates and units exactly as written.
</rules>

Then the three documents, each in its own <document> tag. Then the question:

Based on the documents above: make a map of the document set. For each document, list its chapters with section numbers, one line on what each chapter covers, and mark with REQ every chapter that contains obligations for the contractor. End with the number of chapters per document.

Argon returns a map of 31 chapters. Sem checks it against the tables of contents. Two things are off. Annex 3 of the specification is missing, because his text file cut it off when he copied it. And chapter 6 is marked as having no obligations, while it holds the reporting rules. He fixes his text file, adds annex 3, and corrects the map. The next pass will start from a complete set.

Common mistakes

  • One giant question. "Find all the requirements and tell me if we can meet them" mixes three jobs. Map first, extract next, judge last.
  • No NOT FOUND rule. Without it, the model fills gaps with likely-sounding text.
  • Trusting a map you did not check. A missing annex is often your copy, not the model. The map is how you find out.

Today's actions

Ticks are not saved without an account

Do it in Gemini

Gemini

  1. Open aistudio.google.com/prompts/new_chat?model=gemini-4-argon for a new chat with Gemini 4 Argon, and check the key icon for your paid key.
  2. Paste your rules block first. Use the template below and change the role and rules to your job.
    <role>You are a careful analyst. You work only from the documents below.</role>
    <rules>
    1. Use only the documents. No outside knowledge.
    2. Every claim gets a reference: document letter and section number, for example (A 4.3.2).
    3. If the documents do not say, write NOT FOUND. Never guess.
    4. Where documents disagree, show both with their references.
    5. Keep amounts, dates and units exactly as written.
    </rules>
  3. Under it, paste each document between its own tags, for example <document id="A" title="Specification"> at the start and </document> at the end.
  4. At the very end, paste the map question below and click Run.
    Based on the documents above: make a map of the document set. For each document, list its chapters with section numbers, one line on what each chapter covers, and mark with REQ every chapter that contains obligations. End with the number of chapters per document.
  5. Compare the map with the real tables of contents. Note every missing chapter, wrong number or wrong REQ mark.
  6. Copy the corrected map, and your brief without the documents, into one note called Run kit.

Note: Google's prompting guide advises putting all context first and the specific question at the very end, after a bridge phrase such as Based on the information above, and using clear separators such as XML-style tags. Keep this chat open, or save the prompt: the next lesson continues in it.

Paid planNeeds the Gemini API Paid Tier: a paid project in Google AI Studio. Argon is not on the Free tier.

Checked on 30 November 2026 · Source: Gemini API docs: Prompt design strategies (opens in a new tab)

Create a free account to save your progress. Sign in or sign up