Earlier in this series, I covered:
The latest message in a conversation is not always a complete search query.
A user may ask, “What about contractors?” after discussing leave carryover for full-time employees. The meaning is clear inside the conversation, but the words “What about contractors?” do not identify the policy topic by themselves. Sending only that text to a retriever can produce results about contracts, hiring, access, or unrelated contractor rules.
Query rewriting adds an intermediate step before retrieval. An application uses the current question and selected context to produce a search request that states the information need more explicitly. In this example, the rewrite could be: “How many unused leave days may contractors carry over?”
The original question remains the user’s request. The rewritten query is a tool for finding evidence to answer it.
The user question and retrieval query are different objects
A user question is written for conversation. It may contain pronouns, shorthand, follow-up wording, or assumptions carried from earlier turns.
A retrieval query is written for a search system. It needs enough explicit information for the retriever to compare it with indexed content. Depending on the implementation, the query may be a text string, an embedding input, the text portion of a hybrid search, or one field in a structured search request.
A rewrite can resolve omitted subjects, replace a pronoun with the entity it refers to, correct a spelling error, or express the same concept using terms likely to occur in the collection. These transformations are implementation-dependent. Some systems use an LLM, some use search-service features, and others apply rules or templates.
The distinction matters because the rewrite is not a more polished version of the user’s prose. Its purpose is narrower: create input for retrieval while preserving the same information need.
From conversation to a standalone query
A conversational RAG application can keep the user’s language and the retriever’s input separate.
First, the application gathers the current question and the parts of the conversation needed to interpret it. The rewriter uses that material to make an omitted topic, entity, date, or constraint explicit.
Second, it produces a standalone search request. This output is retrieval text, not a response to the user.
Third, the retriever searches the index. The original question may still be passed to the generator together with the retrieved evidence. The two inputs serve different purposes: the rewrite helps locate evidence, while the original question preserves what the user asked.

Worked example
Suppose a user first asks, “How many unused leave days may full-time employees carry over?” The next message is: “What about contractors?”
The latest turn supplies the new population but omits the topic. Conversation history supplies the missing subject, allowing a rewrite such as: “How many unused leave days may contractors carry over?”
That query gives retrieval an explicit topic and population. It still does not decide the answer. The answer depends on the passages returned by search and the later generation step.
One question can become several retrieval queries
A single rewrite is useful when the main task is to make one conversational request explicit. Some questions, however, contain several searchable aspects. Query expansion turns one information need into several related retrieval queries.
Consider: “How do employees get reimbursed for international travel?”
An application might search separately for international-travel receipts, foreign-currency reimbursement, and approval rules. Each query searches the same collection and returns its own ranked candidates. At this point, the application has several result sets—not one final list of evidence.
Combining several result sets
The result sets first need to become one usable candidate pool. Simply concatenating them can repeat the same passage. In the fictional example, P7 appears under two queries. A stable passage or chunk identifier allows the application to keep one copy while retaining which queries retrieved it.
Deduplication and ordering are separate operations. Removing the second copy of P7 does not establish where P1, P2, P4, P7, and P9 belong in a shared order. Rank positions—and sometimes scores—from separate searches are not automatically comparable.
Some implementations rerank the combined candidates against the original information need. Others apply a simpler fusion rule. Either approach turns several result sets into a consolidated pool that can continue to context assembly.
Expansion exposes more wording and more aspects of the request to retrieval. It can also add unrelated candidates and additional search work. It is a different information flow, not an automatic improvement over a single rewrite. Consolidation removes repetition; it does not prove that the remaining evidence is sufficient or internally consistent.

What rewriting and expansion can lose
A rewrite is constructed from limited inputs. It can carry forward the wrong part of the conversation, omit a constraint, change an entity, or make the request more specific than the user intended.
For example, a conversation may mention both contractors and vendors. Rewriting “What about their approval process?” requires deciding which group “their” refers to. A confident but incorrect choice can direct retrieval toward the wrong policy even if search works correctly.
Expansion adds another failure surface. One variant may be too broad or may represent an aspect the user did not intend. Consolidation can remove exact duplicates, but it cannot remove every semantically irrelevant passage or resolve conflicting evidence.
These effects occur before generation. A fluent final answer can hide them because the rewritten queries and discarded candidates may never be shown to the reader. Rewriting and expansion change the path to evidence; neither guarantees that the intended evidence will be found.
Conversational questions and retrieval queries serve different roles. A rewrite makes one request explicit; query expansion creates several related searches.
When several searches run, their results must be consolidated before reranking or context assembly. Rewriting, expansion, and consolidation are all intermediate retrieval operations. They shape the path to evidence, but they do not determine whether that evidence is sufficient or correct.
After rewriting, expansion, consolidation, and retrieval, the system may still have evidence that is missing, partial, irrelevant, or conflicting.
The next explainer will cover how those evidence conditions can change the response path, without prescribing thresholds or introducing an evaluation framework.


the contractors follow-up example made query rewriting finally click for me. do you rewrite every query or only follow-ups?