Loading...
Hierarchical Index Retrieval (RAPTOR)(HIR)
Build the retrieval index as a multi-level tree instead of a flat list of chunks. RAPTOR recursively embeds, clusters, and summarizes chunks so a query can retrieve from any abstraction level, returning big-picture synthesis or leaf detail as needed. Anthropic contextual retrieval prepends an LLM-written context blurb to each chunk before embedding so isolated chunks stay grounded in the whole document.
Loading technique guideβ¦
Hierarchical Index Retrieval (RAPTOR)(HIR)
Build the retrieval index as a multi-level tree instead of a flat list of chunks. RAPTOR recursively embeds, clusters, and summarizes chunks so a query can retrieve from any abstraction level, returning big-picture synthesis or leaf detail as needed. Anthropic contextual retrieval prepends an LLM-written context blurb to each chunk before embedding so isolated chunks stay grounded in the whole document.
Loading technique guideβ¦