Skip to content

Query Decomposition

Overview

Query Decomposition is a query processing method in Retrieval-Augmented Generation (RAG) systems, where the original complex query is broken down into several simpler and more specific sub-queries. Each sub-query is processed separately, and the results are combined to form the final answer.

Decomposition Approaches

Approach Description Example
Sequential Sub-queries are formed sequentially, each dependent on the previous one «Who founded OpenAI?» → «When was he born?»
Parallel All sub-queries are formed simultaneously «Compare Python and Java» → «What is Python?», «What is Java?»
Hierarchical The query is broken down into levels of abstraction «History of Rome» → «Foundation», «Republic», «Empire»

Benefits

  • Improved search accuracy by focusing on individual aspects.
  • Reduced model load when processing long and multi-component queries.
  • Increased completeness of the response by covering all sub-topics.

See Also

← All Terms