Query Rewriting — AI Glossary

Query rewriting is a retrieval preprocessing step that transforms the user's question before it is sent to the retriever. Common rewrites: decompose a compound question into sub-questions, expand short queries with synonyms or related terms, pull missing context from conversation history into a standalone query, or translate the query into a form that looks more like the documents being searched.