Zenaique

Multi-query versus decomposition: how do these query transforms raise recall on hard questions?

Short answer·Medium·4.0 · 0·~3 min·Asked atGleanIntelMercor
Attempt it

Describe how multi-query retrieval and query decomposition each improve retrieval on complex questions, and explain when one fits better than the other.

Free · 2 AI evals / day
TL;DR

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.

Memory aid
Sign in to see the mnemonic that makes this stick.
Easy to grasp

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.

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:

s(q,d)=qds(q, d) = q \cdot d

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.

Multi-query: variance over phrasing
Decomposition: partition over sub-needs
Choosing, merging, and controlling the precision cost
Why rank fusion beats a naive union
Sign in to unlock the full deep dive.

Situations where this technique stops working.

Sign in to see when this approach fails.

2–4 min · Everything important, quickly.

Sign in to see the quick scan of the deep dive.
AspectMulti-queryDecomposition
What it variesWording of one fixed needSplits one question into distinct sub-needs
Best forVocabulary or phrasing mismatchComparisons and multi-hop chains
Retrieval callsParallel, one per paraphraseOften sequential when a sub-answer feeds the next
Main failure modeCannot cover a genuinely two-part questionA wrong split drops a needed sub-need entirely
Merge stepRank fusion plus dedupRank 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.
Sign in to see more production examples.

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?
A

Reciprocal rank fusion sums 1/(rank + c) across the lists a chunk appears in, rewarding consistent high ranks without trusting raw, uncalibrated similarity scores.

2 more follow-ups an interviewer would ask next. Sign in to reveal them.

Red flags & common mistakes

The phrases that signal junior thinking. Click to expand.

Most common mistake

Treating multi-query and decomposition as the same thing — one varies the wording of a single need, the other splits genuinely distinct sub-needs.

Sign in to see all red flags and common mistakes.

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

Sign in to unlock the revision sheet.

Primary sources. Browse if you want the original framing.

Similar questions

Same topic, related formats. Practice these next.

4 curated
Next question
Which metric best measures whether a RAG answer is grounded in the retrieved context?
MCQ·Medium