Tickd.ai
Model behaviour

Gemini Ignoring Instructions: How to Fix

Updated 10/26/2026

When Google Gemini ignores specific instructions, formatting rules, or negative constraints (such as "do not use jargon" or "keep the response under 100 words"), it is usually due to context dilution, recency bias, or conflicting prompt architecture. Large language models process prompts by assigning mathematical weights to tokens. If your prompt is too long, poorly structured, or contains contradictory terms, Gemini's attention mechanism may deprioritize your instructions in favor of more common patterns found in its training data.

Here is how to troubleshoot and fix Gemini when it stops following your specific guidelines.

1. Structure Your Prompt with Clear Delimiters

If you mix your context, raw data, and instructions together in a single block of text, Gemini can struggle to distinguish what is an active instruction versus what is data to process. Use clear structural delimiters like brackets or Markdown headers to separate these elements.

* Bad prompt structure: "Summarize this article under 100 words and do not use the word 'innovative'. [Article text...]" * Fixed prompt structure: ` [Instructions] - Summarize the text provided below. - Constraint 1: The summary must be under 100 words. - Constraint 2: Do NOT use the word "innovative" under any circumstances.

[Text to Summarize] """ [Paste article text here] """ ` Using brackets [ ], triple quotes """, or XML tags like <instructions> and <data> helps the model isolate the operating rules from the target content.

The Prompt Generator helps you write a clearer prompt for this kind of task.

Tickd is independent and not affiliated with any AI company.

Open Prompt Generator

2. Leverage Recency Bias (Place Rules at the End)

Gemini exhibits a common behavior known as "recency bias," meaning it assigns higher weight to instructions placed at the very end of a prompt block. If you put your formatting instructions or negative constraints at the beginning of a long prompt, Gemini may deprioritize them by the time it reaches the end of your input.

To fix this: 1. Place your background context and data inputs first. 2. Place your strict rules, formatting constraints, and negative constraints at the very bottom of the prompt. 3. Example: "Based on the data above, generate the report. Crucial: You must output ONLY valid JSON format. Do not write any conversational text before or after the JSON."

3. Use Few-Shot Prompting (Provide Examples)

If Gemini keeps failing a complex formatting task—such as outputting a specific database schema or matching a unique writing style—raw instructions are often not enough. You need to provide at least one or two examples of what a correct response looks like.

  1. Write your system prompt or instruction.
  2. Provide an input example: "Input: [Example Input Data]"
  3. Provide the expected output example: "Output: [Example Correct Output]"
  4. Provide the actual input you want processed: "Input: [Your Actual Data]"

This technique, called few-shot prompting, drastically improves adherence to complex structures because the model can mirror the exact syntactic pattern of your example.

4. Clear the Chat History (Context Reset)

In the Gemini web app, long conversation threads accumulate a large amount of token overhead. As the chat history grows, earlier instructions and system constraints are pushed out of the model's active attention window, leading to style drift or outright refusal to follow initial guidelines.

If Gemini starts ignoring rules it previously followed: 1. Click on New Chat (+ icon) in the left-hand sidebar. 2. Copy your original instructions into the clean session. 3. If using the Gemini API, manually prune or truncate older messages in the history payload to prevent context pollution.

5. Adjust API Parameters (Temperature and Top-P)

If you are accessing Gemini via Google AI Studio or the Vertex AI API, default settings can sometimes cause the model to behave too creatively, ignoring strict instructions.

  1. Locate the Temperature slider in your API settings.
  2. Lower the temperature to a value between 0.1 and 0.3. A lower temperature forces the model to choose highly probable tokens, making its output more deterministic and adhering strictly to instructions.
  3. Ensure your System Instructions box is used for core behavioral rules, rather than embedding them directly in the user prompt payload.

When to Escalate

If Gemini continues to ignore basic instructions across completely new chat windows or multiple API sessions, there may be an active model regression or a service-side bug. Check the official Google Workspace Status Dashboard or the Google AI Studio developer forums to see if a recent model update has degraded performance. If you are an enterprise customer, you can file a support ticket directly through your Google Cloud Console to report model regression.

Once it's working again, two free Tickd tools can help: AI Setup Profile writes setup text for Gemini so you repeat yourself less, and Agent Builder turns a repeat task into a reusable assistant.

While you're here

Tickd is more than troubleshooting — these three are free and take seconds.

Agent BuilderDesign your own AI agent and export it to ChatGPT, Claude, Gemini or Grok.Build one free