Jargonautica
Retrieval and Knowledge

Query Rewriting

Fixing the question before you search with it. Users ask things like ‘what about the second one’ which is meaningless without the conversation, or use internal shorthand that appears nowhere in the documents. Rewriting turns that into something a search engine can act on, and it often improves results more than anything you do to the index.

Technical view

Includes conversational rewriting to resolve pronouns and context into a standalone query, expansion with synonyms and domain vocabulary, decomposition of compound questions into sub-queries, and generating multiple query variants whose results are fused. Adds a model call to the latency budget. Failure risk is drift, where an aggressive rewrite changes the user’s intent, which argues for retaining the original query in the fused set.


Part of AI Terminology Index, section: Retrieval and Knowledge.

How it connects

Query Rewriting links to 5 other terms. The faint lines are links between those terms. See it in the full graph.

Hybrid SearchHybrid SearchSemantic SearchSemantic SearchRetrieval MetricsRetrieval MetricsDeep Research AgentDeep Research AgentAgentic RetrievalAgentic RetrievalQuery Rewriting