HiRAG is a hierarchical retrieval method that applies Gaussian mixture clustering to an entity graph rather than to unstructured text chunks. It therefore differs from RAPTOR's recursive text clustering, while its name should not be confused with BookRAG's table-of-contents-based hierarchy. section 10.7.3
The architectural distinction is:
- RAPTOR induces hierarchy by recursively clustering text representations. section 10.7.3
- HiRAG applies the same Gaussian mixture clustering idea to an entity graph. section 10.7.3
- BookRAG instead maps retrieval onto a document's inherent table of contents, such as chapters and sections. section 10.7.3
Choosing the hierarchy
For a textbook or SEC filing with reliable chapter or section metadata, an intrinsic hierarchy can outperform unsupervised clustering. HiRAG remains the entity-graph alternative; it does not directly exploit the table of contents. section 10.7.3
