Describe how multi-query retrieval and query decomposition each improve retrieval on complex questions, and explain when one fits better than the other.
Multi-query fuses hits from several paraphrases of one question to beat phrasing brittleness; decomposition splits a multi-part question into separately-retrieved sub-questions. Both raise recall, both need dedup.
Imagine looking for a book in a huge library with one librarian. Sometimes the problem is wording: you ask for "the heart-attack book" but the index says "cardiac arrest," so you come up empty. Multi-query fixes that by sending several friends to ask the same question in different words, then pooling whatever any of them found. Other times the problem is that you asked for two things at once: "compare the 2024 and 2025 budgets." One trip blurs both years together. Decomposition fixes that by splitting the request into separate errands, one for each year, so each comes back with the right shelf. Both tricks send out more than one search and then combine the results, which means you also have to throw away duplicates before handing the pile to the person who writes the final answer.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Concept explanation~2 min read
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
These two transforms get mentioned in the same breath, which is exactly why interviews ask candidates to separate them. They share a surface gesture — issue several retrievals, merge the results — so it is easy to recite both and never explain what makes them different tools for different failures.
The real distinction is what each one varies. Multi-query holds the information need fixed and varies the wording. Decomposition holds the wording style fixed and varies the need, splitting one question into several. Both raise recall, but they raise it against different root causes, and applying the wrong one wastes calls or actively adds noise. The strongest answers name the specific failure each transform prevents and give a clean rule for choosing between them, then close the loop on the cost that both incur: more candidates, more latency, and a mandatory merge and dedup step.
Why one query embedding is brittle
A dense retriever embeds the user's question into a single vector and finds the nearest document vectors by similarity. The retrieval score is a dot product between the query vector and each candidate:
That single point has to land near the right chunks in embedding space. Two things knock it off target. First, vocabulary: if the user writes "heart attack" and the document says "myocardial infarction," the two phrasings may not embed close enough, and the right chunk sits just past the top-k cutoff. Second, multiplicity: if the question asks for two distinct things, the embedding averages toward a centroid between both topics and may sit near neither.
Both failures share a shape — the truth is in the corpus but the single query vector does not reach it. Top-k retrieval is unforgiving here. A chunk ranked k+1 is invisible to the generator, no matter how relevant. The two transforms are both ways to give the right chunk more than one chance to enter the pool, but they target the two different reasons it was missed.
Situations where this technique stops working.
2–4 min · Everything important, quickly.
| Aspect | Multi-query | Decomposition |
|---|---|---|
| What it varies | Wording of one fixed need | Splits one question into distinct sub-needs |
| Best for | Vocabulary or phrasing mismatch | Comparisons and multi-hop chains |
| Retrieval calls | Parallel, one per paraphrase | Often sequential when a sub-answer feeds the next |
| Main failure mode | Cannot cover a genuinely two-part question | A wrong split drops a needed sub-need entirely |
| Merge step | Rank fusion plus dedup | Rank fusion plus dedup |
Real products, models, and research that use this idea.
- LlamaIndex query engines ship a MultiStepQueryEngine and sub-question query engine that decompose a complex question and retrieve per sub-question.
- LangChain's MultiQueryRetriever generates several LLM paraphrases of a query and unions the retrieved documents.
What an interviewer would ask next. Try answering before peeking at the approach.
QHow would you merge the ranked lists from several paraphrases or sub-questions?
Reciprocal rank fusion sums 1/(rank + c) across the lists a chunk appears in, rewarding consistent high ranks without trusting raw, uncalibrated similarity scores.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Red flags & common mistakes
The phrases that signal junior thinking. Click to expand.
Treating multi-query and decomposition as the same thing — one varies the wording of a single need, the other splits genuinely distinct sub-needs.
60 second bullets to scan on the way to the call.
What single-embedding brittleness means and why it limits recall
How multi-query generates paraphrases and fuses their hits
Primary sources. Browse if you want the original framing.
Same topic, related formats. Practice these next.