# What is Query rewriting? Definition and meaning

Rewrites, expands or decomposes a user query so that retrieval matches the relevant documents better.

## Definition

**Query rewriting**: Rewrites, expands or decomposes a user query so that retrieval matches the relevant documents better.

In short: Reformulating a question before retrieval.

## When it is used

Better recall in conversational and ambiguous searches.

## Learn more

The full guide to **[Query rewriting](/tools/query-rewriting)** explains how it works, when to use it and how it compares with the alternatives, with examples. The [glossary](/glossary) lists every term on the site from A to Z.

Previous term: [QLoRA](/glossary/qlora) · Next term: [Qwen 4](/glossary/qwen-4)
