Question refinement pattern

On this page 7

The question refinement pattern is a prompt pattern that instructs a language model to propose an improved version of each user question before, or instead of, answering it, so that the final query is more precise, better scoped and more likely to produce a reliable answer. Prompting catalogs classify it among the input semantics and question-improvement patterns, next to the cognitive verifier pattern and the flipped interaction pattern.

The pattern addresses a common weakness in conversations with large language models: users often ask vague or underspecified questions, and the model answers them exactly as written. By asking the model to rewrite the question first, the user borrows the model’s knowledge of the domain to discover which details, constraints and terms the question should have contained.

How the question refinement pattern works

The pattern is usually set up with a standing instruction at the start of a conversation or in the system prompt. A typical wording is: whenever a question is asked, suggest a better version of the question and ask whether the user would like to use it instead. From that point, every user turn triggers a refinement step before any answer is produced.

The refinement step draws on the model’s domain knowledge to add missing context, replace ambiguous words with precise terminology and narrow an overly broad scope. The user then accepts the refined question, edits it or keeps the original. This keeps a human in the loop while still benefiting from the model’s familiarity with how experts frame questions.

The table below breaks the pattern into its core elements and the purpose of each one.

ElementTypical instruction wordingPurpose
TriggerWhenever I ask a questionApplies the pattern to every turn
Refinement requestSuggest a better version of the questionProduces a more precise query
Scope constraintFocus on security aspects onlyDirects which details to add
Confirmation stepAsk whether to use the new versionKeeps the user in control
Optional auto-answerThen answer the refined questionSaves a round trip
Core elements of the question refinement pattern

Variants and configuration options

The basic pattern can be tuned along three main dimensions: how much the model may change the question, whether it waits for confirmation and whether it explains its changes. Each choice trades speed against control.

OptionSettingEffect on the conversation
Confirmation modeAsk before answeringSlower but fully under user control
Auto-answer modeRefine and answer immediatelyFaster but may drift from intent
Multiple candidatesOffer two or three refined versionsExposes different interpretations
Explained refinementState what was added and whyTeaches the user to ask better
Domain constraintRefine only within a stated fieldPrevents irrelevant expansion
Configuration options and their effects

Offering several candidate refinements is particularly useful when the original question is ambiguous, because the alternatives make the hidden interpretations visible. Asking the model to explain each change turns the pattern into a learning tool: after a few sessions, many users start writing the refined form themselves.

In application code, the pattern is often implemented as a separate rewriting call that runs before the main request. The rewritten question is displayed in the interface with accept and edit controls, and only the approved version is sent to the answering model. This split makes the refinement step easy to log, test and disable per feature, and it allows a smaller, cheaper model to handle the rewrite while a larger model produces the answer.

The question refinement pattern belongs to a group of techniques that improve the input before reasoning begins. It differs from its neighbors in who performs the rewrite, whether the user sees it and how many questions result.

TechniqueWhat changesUser involvementTypical goal
Question refinement patternOne improved questionUser confirms or editsPrecision and scope
Cognitive verifier patternSeveral sub-questionsUser answers sub-questionsDecomposition
Flipped interaction patternModel asks the questionsUser supplies informationGathering requirements
Rephrase and respondModel rewrites internallyNoneBetter comprehension
Step-back promptingA more general questionNoneRetrieve principles first
Question refinement compared with neighboring techniques

The closest relative is rephrase and respond, in which the model silently restates the question and answers it in one pass. The key difference is transparency: question refinement shows the rewritten question to the user, which surfaces misunderstandings before effort is spent on a wrong answer.

When to apply the pattern

The pattern pays off when the user knows less about the domain than the model and therefore cannot judge which details matter. It is valuable in technical support, research scoping, legal or medical information gathering and onboarding to an unfamiliar codebase.

It is less useful for precise, well-formed questions from experts, for automated pipelines without a human reader and for simple factual lookups. In those cases the extra turn adds latency and token cost without improving quality.

  • Use it for exploratory questions in an unfamiliar field.
  • Use it when answers depend on context the user may forget, such as versions, jurisdictions or constraints.
  • Skip it for short factual questions with one clear answer.
  • Skip it in batch processing, where no one can confirm the refinement.

Limitations and common mistakes

The main risk is intent drift: the refined question may be more precise yet ask about something slightly different from what the user meant. In auto-answer mode this drift goes unnoticed, so the confirmation step is the most important safeguard.

Other problems include over-specification, where the model adds assumptions that narrow the answer unnecessarily, and refinement fatigue, where users tire of confirming every turn and begin accepting suggestions without reading them. Limiting the pattern to complex questions, or asking the model to refine only when it detects ambiguity, reduces both effects. Finally, the refined question inherits the model’s knowledge gaps: if the model misunderstands the domain, it will confidently add the wrong details.

The simple explanation

Think of a helpful librarian. You ask a fuzzy question. The librarian replies, “Do you mean this?” and offers a clearer version. You agree, and now the search goes much better.

The question refinement pattern asks an AI model to act like that librarian. Before it answers, it suggests a sharper question. You decide whether to use it. The benefit is simple: better questions lead to better answers.

How it is used in practice

A product manager with no security background must decide whether a new mobile app needs extra protection for stored data. She opens a chat with a language model and sets one instruction: whenever she asks a question, suggest a better version that a security engineer would ask, then wait for her approval.

Her first question is whether the app is safe. The model proposes a refined version that asks which data categories the app stores on the device, whether they are encrypted at rest with the platform keystore and which regulatory requirements apply to that data. She accepts it after adding that the app stores health records. The resulting answer identifies two concrete gaps and a checklist for the engineering team, instead of a generic overview of mobile security.