Back to blog
Prompting
Gemini

Gemini 3 Prompting Best Practices

Thắng Đoàn
Thắng Đoàn

Gemini 3 ignoring your rules or drifting off format? These models are built for advanced reasoning, but they respond to structure, not persuasion. Direct, well-organized prompts get the most out of them.

Core principles

Be precise and direct: state the goal plainly, no persuasive filler. Use consistent structure: separate prompt parts with XML-style tags or Markdown headings, and stick to one format. Define ambiguous terms. Put important rules first: constraints, roles, and format requirements go in the system instruction or at the very start. With large documents or code, put all context first and the question last, bridged with "Based on the information above...".

Tips for Gemini 3 Flash

Flash is the faster, lighter version and rewards a little hand-holding. For current events, add "Remember it is 2026 this year" so it uses the right timeframe. For accuracy, add "Your knowledge cutoff date is January 2025" so it knows its training limits. For strict grounding: "Only use facts directly mentioned in the context. If the answer is not there, say the information is not available."

Let the model think

Gemini 2.5 and 3 generate internal thinking before answering, which improves reasoning for free. On very hard problems, a line like "Think very hard before answering" can help, at the cost of extra tokens.

The trade-off

Structure is noise for short prompts: wrapping two sentences in XML tags buys nothing and wastes tokens. But as prompts grow past a screen, tags and ordering stop being decoration and start being load-bearing, because the model anchors on the start of the prompt and the recency of your question. Match the scaffolding to the size of the prompt.

The smallest test

Take your longest working prompt, move the question to the end, and compare the answer.

Based on: Gemini API Prompting Strategies (ai.google.dev)

Share:

Recommended for you

Enjoyed this article?

Subscribe for new articles. No spam. Unsubscribe anytime.

By subscribing you agree to receive the newsletter. No spam, and you can unsubscribe anytime.