HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval

Parth Sarthi Salman Abdullah Aditi Tuli Shubh Khanna Anna Goldie Christopher D. Manning

RAPTOR: Recursive Abstractive Processing for Tree-Organized Retrieval

Abstract

Retrieval-augmented language models can better adapt to changes in world state and incorporate long-tail knowledge. However, most existing methods retrieve only short contiguous chunks from a retrieval corpus, limiting holistic understanding of the overall document context. We introduce the novel approach of recursively embedding, clustering, and summarizing chunks of text, constructing a tree with differing levels of summarization from the bottom up. At inference time, our RAPTOR model retrieves from this tree, integrating information across lengthy documents at different levels of abstraction. Controlled experiments show that retrieval with recursive summaries offers significant improvements over traditional retrieval-augmented LMs on several tasks. On question-answering tasks that involve complex, multi-step reasoning, we show state-of-the-art results; for example, by coupling RAPTOR retrieval with the use of GPT-4, we can improve the best performance on the QuALITY benchmark by 20% in absolute accuracy.

Code Repositories

parthsarthi03/RAPTOR
Official
Mentioned in GitHub
krishgoel/hiro
Mentioned in GitHub
1rsh/raptor-rag
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
question-answering-on-qualityRAPTOR + GPT-4 (June 2023)
Accuracy: 82.6

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp