Skip to content
Duoduo Mediaevidence to decision

Package 07 · Section 5.4

Query Transformation and Retrieval Planning

Improve retrieval without changing the user intent or leaking unsupported assumptions into the query.

Track
B · Knowledge and retrieval engineering
Level
Practitioner
Version
v1.0
Status
In validation · catalog only
Explanation depthDepth

Learning objectives

  • Use rewriting, decomposition, expansion, hypothetical documents and multi-query retrieval.
  • Resolve entities, dates and scope.
  • Detect when clarification is safer than transformation.

In brief

Users rarely phrase queries the way documents are written. Query transformation rewrites, expands or decomposes a request so retrieval can find evidence, while a retrieval plan keeps multi-step questions controlled and auditable.

Core concepts

07.1Rewriting and expansion

Rewriting resolves pronouns and conversation context into a standalone query. Expansion adds synonyms, acronyms and domain terms. Hypothetical-document approaches generate a draft answer and search for passages similar to it.

Every transformation can drift from the user intent. Keep the original query and compare results.

07.2Decomposition

Comparative and multi-hop questions need several retrievals. "Which enzyme route has higher yield under anaerobic conditions?" requires the routes, then yields, then conditions.

A plan lists sub-questions, their dependencies and the evidence each must return before synthesis.

07.3Stopping and budgets

Iterative retrieval must stop. Set a maximum number of steps, a token budget and a sufficiency test for each sub-question.

If a sub-question cannot be answered, the plan should abstain on it rather than guess.

Worked example

Decomposing a comparative bioprocess question

Situation: Query: "Is route B better than route A for itaconic acid at pilot scale?"

  1. 1Sub-question 1: reported titers for route A and B, with scale.
  2. 2Sub-question 2: conditions for each result (strain, medium, oxygen).
  3. 3Sub-question 3: any pilot-scale or negative results.
  4. 4Sufficiency test: at least one comparable-condition result per route.

Outcome: Only bench-scale results exist for route B. The plan returns a partial answer and flags pilot-scale evidence as missing.

Decision rules

  • Always retain and log the original query.
  • Decompose only when the question has independent evidence needs.
  • Every plan needs a step limit and a sufficiency test.
  • Abstain on sub-questions that fail sufficiency instead of filling gaps.

Common pitfalls

  • Expansions that introduce terms changing the meaning of the question.
  • Unbounded agentic loops that inflate cost without improving evidence.
  • Synthesizing across sub-answers with incomparable conditions.

Key vocabulary

Query rewriting
Reformulating a query into a standalone, retrieval-friendly form.
Multi-hop
A question that requires chaining evidence from several sources.
Sufficiency test
A rule deciding whether retrieved evidence is enough to answer.
Retrieval plan
An ordered set of sub-queries with dependencies and stop conditions.

Tutorial outline

  1. 07.1Query normalization and spelling; domain synonym expansion.
  2. 07.2Multi-hop decomposition and dependency ordering.
  3. 07.3Temporal and jurisdictional filters; query drift and over-expansion.

Required artifacts

Transformation trace, subquery plan, merged results and drift analysis.

Evaluation evidence

Recall gain, irrelevant-result rate, intent preservation and added cost.