Principle:AI4Finance Foundation FinGPT RAPTOR Recursive Abstractive Processing
| Knowledge Sources | |
|---|---|
| Domains | RAG, NLP, Document_Processing |
| Last Updated | 2026-10-18 00:00 GMT |
Overview
A retrieval-augmented generation technique that recursively clusters, embeds, and summarizes document chunks to build a hierarchical tree of abstractions for multi-level retrieval.
Description
RAPTOR (Recursive Abstractive Processing for Tree-Organized Retrieval) addresses the limitation of flat-chunk RAG by building a multi-level summary tree. At each level, chunks are embedded, clustered via GMM over UMAP-reduced embeddings, and summarized by an LLM. The summaries become the input for the next level. This enables retrieval at multiple levels of abstraction — from raw text to high-level summaries.
Usage
Use this principle when designing RAG systems for long financial documents (10-K filings, earnings transcripts) where both fine-grained detail and high-level summaries need to be retrievable.
Theoretical Basis
The recursive pipeline at each level:
- Embed: Generate vector embeddings for all text chunks
- Reduce: Apply UMAP dimensionality reduction (global then local)
- Cluster: Fit Gaussian Mixture Model, select optimal clusters by BIC
- Summarize: Use an LLM to summarize each cluster
- Recurse: Treat summaries as new input chunks for the next level
The optimal cluster count minimizes BIC.