Gemini 3.1 Pro is a reasoning model, and the official guidance recommends keeping prompts direct and concise. When processing long inputs, put the specific question at the end of the context and anchor the answer with “Based on the preceding information.”
Suitable tasks: Long-document or codebase question answering, cross-modal material summarization, and analytical tasks that require low-redundancy yet traceable answers.
Unsuitable tasks: Tasks that require the model to supply the latest facts without Search grounding; it is also unsuitable to force reasoning with old-style complex chain-of-thought templates.
Applicable model version: gemini-3.1-pro-preview; the Gemini 3 series models were still in preview at the time of collection, according to the official page.
Applicable clients, agents, or APIs: Gemini API, AI Studio, Gemini CLI, Google Antigravity, and Vertex AI; text/image/video/audio/PDF input with text output.
Recommended reasoning level and parameters: Use thinking_level=high by default for complex tasks and low for simple or latency-sensitive tasks. The official guidance recommends leaving Gemini 3's temperature at its default of 1.0.
You are a rigorous research-analysis assistant.
Answer the question based on the complete context provided below. Do not add facts that are not in the context.
First identify the sections, files, or time points directly relevant to the question, then give your conclusion.
If there are conflicts, omissions, or multiple interpretations, explicitly list the assumptions and uncertainties.
When answering, cite the relevant section, file name, or page number; if you cannot find supporting evidence, write “Not found in the provided context.”
<context>
Paste the document, codebase excerpt, or multimodal materials here.
</context>
Based on the preceding information, complete the following:
<task>
Write the specific question and acceptance criteria here.
</task>
Output format:
1. Conclusion (no more than 5 items)
2. Evidence locations
3. Conflicts or omissions
4. Next-step recommendationsFor a more conversational answer, write the style requirement directly, for example: Explain this as a friendly, talkative assistant. Do not copy the old, lengthy “chain-of-thought prompt” verbatim.
Using the same long document or codebase, put the question at the beginning of the context in one run and at the end in another.
Use the anchored prompt in one group and only a natural-language question in the other; keep the model, input, and thinking_level fixed.
Evaluate citation-location accuracy, omission rate, the number of fabricated facts, output length, and time to the first token.
For tasks involving the latest information, enable Google Search grounding and record the source corresponding to each fact instead of relying on the model's knowledge cutoff date.
The official documentation states that Gemini 3 is a reasoning model and recommends direct, clear, concise input prompts; overly complex, old-style prompt engineering may lead to over-analysis.
The official guidance recommends placing specific instructions or questions for large datasets after the data context, anchored with short phrases such as “Based on the preceding information…”
The official documentation gives Gemini 3.1 Pro an input limit of 1,048,576 tokens and an output limit of 65,536 tokens; the model table in the developer guide likewise lists 1M/64k.
The official documentation states that the knowledge cutoff is January 2025 and that Search grounding should be used for up-to-date facts.
“Put the question at the end” is an official prompting recommendation, not a guarantee of success for every long-context task; it must be evaluated on the target dataset.
The example requires citations to sections, file names, or page numbers, but Gemini cannot produce real page numbers from nothing; the server should verify that citations exist.
thinking_level is a relative upper limit on thinking depth, not a strict token guarantee; high may significantly increase the wait time to the first token.
Context anchoring alone cannot replace access controls, redaction, tool-result validation, or structured-output parsing.
The official guidance says, “Be concise in your input prompts.” (Compliant short quote.)
Gemini 3.1 Pro