Prompt Iteration: Fixing Prompts That Don't Work
Prompt design is rarely perfect on the first try. You write a prompt, check the response, and adjust. That is completely normal, even experts do it. Here are three strategies to fix prompts that are not giving you what you want.
Strategy 1: Rephrase Your Prompt
Different phrasing often gives different results, even when the meaning is the same. If one version does not work, try saying it differently:
- Version 1: "How do I bake a pie?"
Version 2: "Suggest a recipe for a pie."
Version 3: "What is a good pie recipe?"
All three ask for the same thing, but the model may respond differently to each. Sometimes the second or third version gives a noticeably better answer.
Strategy 2: Switch to an Analogous Task
If the model will not follow your instructions one way, try framing the same goal as a different type of task. For example, if you ask the model to categorize a book into predefined genres and it gives you a long explanation instead of just the category, reframe it as a multiple choice question.
Instead of: "Which category does The Odyssey belong to: thriller, sci-fi, mythology, biography?"
Try: "Multiple choice problem: Which option describes The Odyssey? Options: thriller, sci-fi, mythology, biography."
Same goal, different framing, and often a cleaner answer.
Strategy 3: Change the Order of Content
The order of things in your prompt can affect the response. Try rearranging the sections:
- Version A: Examples, then context, then your question
Version B: Your question first, then examples, then context
Version C: Examples, then your question, then context
Bonus tip: If the model gives you a fallback response like "I'm not able to help with that," try increasing the temperature slightly. This can sometimes get past overly cautious safety filters.
Recommended for you
- PromptingGemini
Gemini 3 Prompting Best Practices
A practical guide to getting the best results from Gemini 3 models, core prompting principles, Flash-specific tips, and ready-to-use templates.
- PromptingClaude Code
Choosing the Right Claude Model: Haiku, Sonnet, and Opus Explained Simply
A beginner-friendly guide to Claude's three AI models: Haiku, Sonnet, and Opus. Learn which one to pick for your task and how to avoid wasting your usage limits.
- PromptingClaude Code
The System Prompt Your Coding Agent Actually Needs
A coding agent without a custom system prompt is a chatbot that happens to write code. The default prompt runs the agent like a generic assistant. Yours should run it like an engineer on your team.
- PromptingClaude Code
Understanding AI Model Parameters: Temperature, Top-K, and Top-P
A plain-English guide to the settings that control how AI generates text, temperature, top-K, top-P, max tokens, and stop sequences, and when to tweak each one.
Enjoyed this article?
Subscribe for new articles. No spam. Unsubscribe anytime.
By subscribing you agree to receive the newsletter. See the Privacy page.