Query Decomposition
Definition
Query Decomposition — a technique in RAG where the original complex query is broken down into several simpler sub-queries. Each sub-query is processed separately, and the results are combined to form the final answer.
Types of Decomposition
| Type | Description |
|---|---|
| Sequential | Sub-queries are formed and executed sequentially, taking into account previous results |
| Parallel | All sub-queries are formed and executed simultaneously |
| Hierarchical | The query is broken down into levels, each level refining the previous one |
Application
Decomposition is applied for: - Multi-component questions requiring information from different sources - Questions with multiple entities and relationships - Improving Context Precision and Context Recall