The question
An agent that works with someone for months accumulates far more history than any context window holds. It needs somewhere to put it, and a way to get the right piece back. The simplest answer is a vector store of chunks. The obvious objection is that some questions are not about any single chunk: "what has this user been worried about lately?" or "how did the project's plan change?" need an answer drawn from many moments at once.
RAPTOR (Recursive Abstractive Processing for Tree-Organized Retrieval) offers a tidy-looking fix. It clusters chunks by meaning, summarises each cluster, and repeats, so retrieval can choose between detail and gist . It was designed for long documents, not conversations. Yet it sits naturally next to agent-memory ideas that came before it, such as Generative Agents' reflections and MemGPT's recursive summaries . So we asked:
- How does RAPTOR build and query its tree, and what did the original paper actually show?
- What does long-term agent memory demand that document QA does not?
- How does RAPTOR perform when independent groups use it as a baseline, especially on memory benchmarks?
- Can a RAPTOR-style tree be maintained as memory grows, and at what cost?
- How trustworthy are the summaries that make up its upper layers?
- What do production memory systems do instead?
Scope. We cover foundations from 2021 and focus on work from mid-2024 to November 2026. Peer-reviewed papers, preprints and official documentation are all included and labelled. Vendor papers report their own numbers and are marked as such.
How RAPTOR builds its tree
RAPTOR splits text into chunks of about 100 tokens without breaking sentences and embeds each with SBERT . It reduces dimensions with UMAP and clusters with a Gaussian Mixture Model, picking the number of clusters by the Bayesian Information Criterion. The clustering is soft, so one chunk can sit in several clusters, and it runs globally first, then locally within each global cluster . gpt-3.5-turbo summarises each cluster into a parent node. The parents are then embedded, clustered and summarised in turn, until the tree stops branching .
What we wanted to know
Some AI helpers work with you for months. They collect far more history than they can read at once. They need a place to keep it. They also need a way to find the right piece later.
The simple way is to cut history into small pieces. Then you search for the pieces that match. But some questions need many pieces at once. "What has this person been worried about lately?" is one. No single piece answers it.
RAPTOR offers a neat fix . It groups pieces that mean similar things. It writes a short summary of each group. Then it groups the summaries and summarises again. This makes a tree. Searches can pick fine detail or the big picture.
RAPTOR was built for long documents, not chats. But it looks a lot like older memory ideas for AI helpers . So we asked:
- How does RAPTOR build its tree? What did its paper really show?
- What does an AI helper's memory need that a book reader doesn't?
- How does RAPTOR do when other teams test it?
- Can the tree keep growing as new memories arrive? What does that cost?
- Can we trust the summaries in the tree?
- What do real memory products do instead?
What we covered. We read work from 2021 onwards. We focused on mid-2024 to November 2026. We say which papers were checked by other scientists and which were not. Company papers grade their own work, and we say so.
How RAPTOR builds its tree
RAPTOR cuts text into chunks of about 100 tokens . A token is a small bit of a word. Each chunk becomes a list of numbers that captures its meaning. That list is called an embedding.
Next RAPTOR squashes the numbers down with a tool called UMAP. Then it groups the chunks with a Gaussian mixture model . That is a maths way to find groups. One chunk can belong to two groups. The AI model gpt-3.5-turbo writes a summary of each group . Then the summaries are grouped and summarised too. This repeats until the tree stops branching.
At query time there are two options. Tree traversal starts at the root and descends through the most similar nodes. Collapsed tree throws every node, leaves and summaries alike, into one pool and takes the most similar ones until a token budget (2,000 tokens in the main experiments) is full. The authors report that collapsed retrieval did better throughout , although that choice was tuned on 20 QASPER documents. Across datasets and retrievers, between 18.5% and 57% of the nodes it retrieved came from summary layers rather than leaves .
What the paper showed
The cleanest evidence is the controlled comparison. With the same UnifiedQA reader, adding the tree on top of SBERT, BM25 or DPR improved every cell on QuALITY, QASPER and NarrativeQA, by roughly 0.5 to 4.4 points . With GPT-3 as reader on QuALITY's dev set, RAPTOR reached 62.4% accuracy against 60.4% for DPR and 57.3% for BM25 .
The headline numbers are larger. With GPT-4, RAPTOR scored 82.6% on the QuALITY test set and 76.2% on its hard subset, against 62.3% and 54.7% for the previous best system . That is the source of the abstract's claim of a 20-point absolute improvement on QuALITY . The earlier systems were built on DeBERTa-class readers, so much of that gap belongs to GPT-4 rather than to the tree. We found no matched GPT-4 plus DPR result on the test set to separate the two.
Two ablations matter for memory design. First, retrieving from all layers beat retrieving from any single layer, though this was shown on single QuALITY stories . Second, a tree built over contiguous windows of text rather than semantic clusters scored 55.8% against RAPTOR's 56.6% . Most of the benefit, in other words, seems to come from having summaries of several sizes available, not from the clustering. The paper also reports that build time and tokens grow linearly with document length, tested on documents of 12,500 to 78,000 tokens , and that 4% of 150 sampled summary nodes contained minor hallucinations .
Finally, a note on comparability. For NarrativeQA the authors changed the evaluation script, smoothing BLEU and adding tokenisation to METEOR, so its comparisons against published baselines on that dataset are not strictly like-for-like .
What agent memory asks for
Document QA and agent memory share retrieval, but memory adds four demands.
It grows continuously. New observations arrive every turn. A structure that must be rebuilt to absorb them is costly in direct proportion to how often the agent learns something.
Facts change. Users move house, change jobs and revise plans. A good memory must let a newer fact override an older one. LongMemEval tests this directly as "knowledge updates", alongside information extraction, multi-session reasoning, temporal reasoning and abstention . MemoryAgentBench calls the same ability "selective forgetting" .
Time matters. LoCoMo, a benchmark of 50 conversations averaging about 300 turns over up to 35 sessions, found that models "face challenges in understanding time concepts within dialogues" . Its best system reached 41.4 F1 against 87.9 for humans .
Details matter more than themes. Many memory questions are single facts: a name, a date, a preference. In LoCoMo, retrieving extracted observations scored 41.4 F1 at top-5, while retrieving session summaries scored 32.5 .
Earlier agent-memory work already contained pieces of RAPTOR's idea, built for these demands. Generative Agents keep a stream of observations, and periodically write "higher-level, more abstract thoughts" called reflections that can cite other reflections, forming trees that grow with events . MemoryBank rolls daily summaries into a global one and adds an Ebbinghaus-style forgetting curve . MemGPT pages old messages out of context and keeps a recursive summary of what it evicted . Wang and colleagues showed that even a single rolling summary helps long dialogues a little, lifting MSC F1 from 19.41 with the full history to 20.48 . Further back, recursive summarisation of whole books already showed errors compounding as summaries were composed , and MemWalker let a model navigate a summary tree interactively, noting it "only works when the LLM exhibits a strong enough reasoning capability" .
A 2025 survey of memory operations lists consolidation, updating, indexing, forgetting, retrieval and condensation, and observes that memory operations "remain under-evaluated in current benchmarks" . RAPTOR addresses indexing, retrieval and condensation. It has no mechanism for updating or forgetting.
There are two ways to search the tree. One starts at the top and walks down. The other puts every piece in one big pile, summaries and chunks together. It takes the best matches until 2,000 tokens are used up. The pile way did better every time, the authors say . They tested that on only 20 documents, though. Between 18.5% and 57% of the pieces it picked were summaries .
What the paper showed
The fairest test kept the reader AI the same. The tree helped three search tools on three quizzes. The gains were about 0.5 to 4.4 points . With GPT-3 reading, RAPTOR scored 62.4% on one quiz. The other tools scored 60.4% and 57.3% .
The headline numbers are bigger. With GPT-4, RAPTOR scored 82.6% on the QuALITY test. The best older system scored 62.3% . That is where the famous 20-point claim comes from . But the older systems used much weaker AI readers. So a lot of that gap comes from GPT-4, not from the tree. We found no fair test that splits the two apart.
Two more tests matter for memory. Using all tree levels beat using just one level . That was shown on single stories, though. And a tree built from neighbouring text, not meaning groups, scored 55.8%. RAPTOR scored 56.6% . So most of the help seems to come from having summaries of different sizes. The grouping adds little.
Build time grew in a straight line with document length. That was tested on documents from 12,500 to 78,000 tokens long . The authors checked 150 summaries by hand. About 4% had small made-up bits .
One more catch. For one quiz, NarrativeQA, the authors changed how the score was counted . So those scores are not a fair match with older results.
What an AI helper's memory needs
Reading a book and remembering a friend are different jobs. Memory adds four needs.
It keeps growing. New things arrive every day. If the memory must be rebuilt for each one, that gets very costly.
Facts change. People move house and change jobs. Newer facts must win over old ones. LongMemEval tests this. It calls it "knowledge updates" . MemoryAgentBench calls it "selective forgetting" .
Time matters. LoCoMo is a test of 50 long chats. Each has about 300 turns . The authors found AI models "face challenges in understanding time concepts within dialogues" . The best AI scored 41.4. People scored 87.9 .
Details matter more than themes. Many memory questions ask for one small fact, like a name or a date. In LoCoMo, searching short notes scored 41.4. Searching session summaries scored 32.5 .
Older AI memory ideas had parts of RAPTOR's idea. Generative Agents write "higher-level, more abstract thoughts" about what happened . These can build on each other, like a tree that grows. MemoryBank rolls daily summaries into one big summary. It also lets old memories fade . MemGPT moves old messages out of view. It keeps a summary of what it moved . One rolling summary helped long chats a little. A score went from 19.41 to 20.48 .
Even older work summarised whole books in layers. Mistakes piled up as the layers grew . MemWalker let an AI walk down a summary tree. It "only works when the LLM exhibits a strong enough reasoning capability" .
A 2025 review lists six memory jobs. They include updating and forgetting. It says these jobs "remain under-evaluated in current benchmarks" . RAPTOR can store, search and shrink. It cannot update or forget.
The benchmark record
Since 2024, RAPTOR has become a standard baseline. That gives a rare chance to see it run by groups who did not build it. The pattern is consistent: the stronger the flat baseline, the worse RAPTOR looks.
Against strong flat retrieval
HippoRAG 2 ran RAPTOR with the same Llama-3.3-70B reader and the same NV-Embed-v2 retriever as its other baselines . RAPTOR averaged 48.8 F1 across seven datasets, against 57.0 for NV-Embed-v2 alone. It was 11.2 points behind on Natural Questions, scoring 50.7 against 61.9, which is below even the no-retrieval baseline's 54.9. The authors attribute this to "noise introduced into the retrieval corpora by its LLM summarization mechanism" . RAPTOR's passage recall at 5 was 65.6, better than BM25's 55.1 but below NV-Embed-v2's 73.4 .
How RAPTOR does in other teams' tests
Since 2024, many teams have tested RAPTOR against their own systems. This shows how it does in other hands. The pattern is clear. The better the simple rival, the worse RAPTOR looks.
Against a strong simple search
The HippoRAG 2 team gave every system the same reader and search tool . RAPTOR averaged 48.8 over seven quizzes. The search tool alone, NV-Embed-v2, averaged 57.0. On one quiz, RAPTOR scored 50.7 and the search tool scored 61.9. Using no search at all scored 54.9! The team blamed "noise" from RAPTOR's summaries . RAPTOR found the right page more often than old word search. It still did worse than the strong tool: 65.6 against 73.4 .
The most telling result comes from a 2025 study with Christopher Manning, a RAPTOR co-author, among its authors . It compared RAPTOR against plain top-k retrieval and against "DOS RAG", which keeps retrieved chunks in their original document order, at matched token budgets. The finding is blunt: "Vanilla RAG consistently outperforms RAPTOR across datasets and retrieval sizes" . With GPT-4o and a 10,000-token budget on ∞Bench's multiple-choice task, RAPTOR scored 82.4%, vanilla RAG 86.0% and DOS RAG 90.0%. On QuALITY at 8,000 tokens the figures were 84.9%, 85.9% and 90.4% .
The clearest result has a twist. One of RAPTOR's own authors helped write it . The team gave each method the same amount of reading space. "Vanilla RAG consistently outperforms RAPTOR across datasets and retrieval sizes," they wrote . Vanilla RAG just means plain search. On one test, RAPTOR scored 82.4%. Plain search scored 86.0%. Plain search that kept pieces in their first order scored 90.0%. On QuALITY the scores were 84.9%, 85.9% and 90.4% .
GraphRAG-Bench's task-stratified analysis tells the same story with more texture . On fact retrieval over novels, RAPTOR reached 49.25% accuracy against 60.92% for reranked RAG, while using about four times as many prompt tokens per query. Its relative strength was faithfulness in creative generation, at 70.85% against 49.21% for reranked RAG .
Where RAPTOR does well
RAPTOR looks stronger when the comparison set lacks a tuned dense retriever. In a unified evaluation of graph-based RAG published in PVLDB, it beat a basic VanillaRAG on QuALITY by about 18 points (57.0 against 39.1) . On a domain-textbook reasoning benchmark it ranked first, though only 1.9 points above BM25 . On long-novel reading, NeurIPS 2025's CAM paper found RAPTOR the strongest of its baselines, ahead of GraphRAG, HippoRAG and MemTree on NovelQA . Even there, RAPTOR scored 39.7 on time questions against 55.3 on plot questions .
A long-context study likewise found RAPTOR the best of six retrievers on a sample of its questions, answering 38.5% correctly, though full long-context reading still did better overall (56.3% against 49.0% for RAG) .
On memory benchmarks
MemoryAgentBench is, to our knowledge, the only peer-reviewed benchmark that runs RAPTOR as an agent memory fed incrementally . It describes RAPTOR as "building a hierarchical tree of recursive summaries (bottom-up clustering and abstraction)". With GPT-4o-mini as the backbone, RAPTOR scored 27.0 overall. BM25 scored 41.5, HippoRAG-v2 41.6, and plain long-context GPT-4o-mini 42.2. On single-hop accurate retrieval RAPTOR reached 29.0 against BM25's 66.0. On selective forgetting it averaged 7.5, against 25.5 for BM25 and 32.5 for long-context GPT-4o . Two caveats apply. The benchmark tested one RAPTOR configuration, and multi-hop conflict resolution was near zero for every retrieval and memory agent, and for the non-reasoning long-context models too .
Another big test split questions by type . On finding facts in novels, RAPTOR scored 49.25%. Plain search with sorting scored 60.92%. RAPTOR also used about four times as many tokens per question. It did well at one thing: staying true to the source when writing stories. It scored 70.85%. Plain search scored 49.21% .
Where RAPTOR does well
RAPTOR looks better when no strong search tool is in the race. Against a basic search, it won by about 18 points on QuALITY. It scored 57.0 against 39.1 . On a textbook test it came first. But it was only 1.9 points ahead of word search . On long novels, one team found RAPTOR the best of their rival systems . Even there it scored 39.7 on time questions. It scored 55.3 on plot questions .
Another study found RAPTOR the best of six search tools. It got 38.5% right . But reading the whole text still won overall. That scored 56.3%, against 49.0% for search .
On memory tests
MemoryAgentBench tests RAPTOR as a growing memory . It is the only checked test we know that does. It describes RAPTOR as "building a hierarchical tree of recursive summaries (bottom-up clustering and abstraction)". RAPTOR scored 27.0 overall. Word search scored 41.5. HippoRAG-v2 scored 41.6. Just reading everything with GPT-4o-mini scored 42.2.
On finding one simple fact, RAPTOR scored 29.0. Word search scored 66.0. On updating old facts, RAPTOR scored 7.5. Word search scored 25.5. Reading everything with GPT-4o scored 32.5 . Two catches: they tried only one RAPTOR setup. And almost every system nearly failed the hardest update questions .
We found no published RAPTOR result on full LoCoMo or full LongMemEval.
We found no RAPTOR score on the full LoCoMo or LongMemEval tests.
The static-tree problem
RAPTOR's clusters are fitted to the whole corpus at once. Add a document and the clusters, and therefore the summaries above them, may no longer fit. The adRAP authors put it plainly: RAPTOR ends up "requiring a full re-computation of the tree after each change" . The MemTree paper quantifies it: "incorporating a single new observation requires approximately 3,750 LLM calls for RAPTOR" . CAM's authors describe RAPTOR as one that "operates in a fully offline manner, lacking incremental updates to memory" . On large corpora, the PVLDB evaluation reports that the original GMM-based RAPTOR did not finish building within two days, so a K-means variant was substituted . The same study notes that tree-building is otherwise the cheapest graph-style index in tokens , so the problem is less the size of one build than the frequency of rebuilds.
Three lines of work patch this.
MemTree (ICLR 2025) keeps RAPTOR's multi-level summaries and collapsed-tree retrieval but builds the tree online . Each new memory descends from the root, following the most similar child while similarity exceeds a threshold that rises with depth. It is then attached as a leaf, and the summaries of its ancestors are rewritten. Insertion took 3.27 ± 2.38 LLM calls on average . On QuALITY, MemTree scored 59.8% against RAPTOR's 59.0%, and on MultiHop-RAG 80.5% against 81.0%, with a small edge on temporal questions (68.4% against 66.0%) . Its conversational experiments do not include RAPTOR.
adRAP keeps RAPTOR's pipeline and approximates it incrementally. It projects new chunks into the stored UMAP space, updates the mixture model, splits clusters that grow too large, and re-summarises only what changed . After building on 70% of a corpus and adding the rest, it needed 530 summary calls and 638 seconds on QASPER, against 761 calls and 1,093 seconds for a full rebuild. Context relevance dropped by at least 3% .
EraRAG replaces clustering with locality-sensitive hashing so that growth triggers only local rebuilds. It reports up to 57.6% fewer tokens and 77.5% less rebuild time than RAPTOR, while conceding that "RAPTOR is already lightweight" compared with graph methods .
The tree that can't grow
RAPTOR makes its groups from all the text at once. Add new text, and the groups may stop fitting. So the summaries on top may stop fitting too.
The adRAP team explains the problem. RAPTOR ends up "requiring a full re-computation of the tree after each change" . The MemTree team counted the cost. One new memory "requires approximately 3,750 LLM calls for RAPTOR" . An LLM call is one request to the AI. The CAM team agrees. RAPTOR "operates in a fully offline manner, lacking incremental updates to memory" . Some piles of text were very big. There, the first RAPTOR didn't finish building in two days . That team had to swap in a simpler grouping method. The same team found tree-building cheap in tokens otherwise . So one build is fine. The trouble is building again and again.
Three teams tried to fix this.
MemTree keeps RAPTOR's layers of summaries . But it grows the tree one memory at a time. Each new memory walks down from the top. It follows the closest match until nothing matches well enough. Then it joins as a new leaf. The summaries above it get rewritten. Adding one memory took about 3.27 AI calls .
MemTree scored 59.8% on QuALITY. RAPTOR scored 59.0%. On another quiz it scored 80.5% against RAPTOR's 81.0% . It did a bit better on time questions: 68.4% against 66.0% . Its chat tests did not include RAPTOR.
adRAP keeps RAPTOR's steps but updates them bit by bit . It only rewrites summaries that changed. It added the last 30% of one set in 638 seconds. A full rebuild took 1,093 seconds . It needed 530 summary calls, not 761. Its search quality dropped by at least 3% .
EraRAG uses a quick sorting trick instead of grouping . New text only rebuilds nearby parts. It used up to 57.6% fewer tokens than RAPTOR. It spent 77.5% less time rebuilding . Its authors admit "RAPTOR is already lightweight" next to other methods .
These results settle the cost question at document scale. They leave the semantic one open. None of these trees records when a fact became true or stopped being true, and none resolves a contradiction other than by re-summarising. adRAP supports deletion , but deletion requires knowing what to delete.
Summaries: compression, drift and faithfulness
RAPTOR's upper layers are LLM-written text, and they are retrieved alongside the originals. That makes their accuracy part of the memory's accuracy.
RAPTOR's own audit is small. The authors annotated 150 nodes from 40 stories and found that "about 4% of the summaries contained minor hallucinations", which they report did not propagate upward or noticeably affect QA . Independent studies of recursive summarisation look worse. FABLES had humans check 3,158 claims from book-length LLM summaries built by hierarchical merging, the same pattern RAPTOR uses . The share of faithful claims ranged from 90.89% for Claude-3-Opus to 71.52% for GPT-3.5-Turbo, the model family RAPTOR used as summariser. Automatic raters did not catch the errors: "none correlates strongly with human annotations, especially with regard to detecting unfaithful claims" . Book-level claims and RAPTOR nodes are not directly comparable, but the gap is wide enough to warrant caution. BooookScore found that hierarchical merging gives coherent summaries that lose detail, with omissions the most frequent error .
So the cost problem is solved for documents. The meaning problem is not. None of these trees records when a fact became true. None records when it stopped being true. They just rewrite the summary and hope. adRAP can delete things . But you have to know what to delete.
Can we trust the summaries?
RAPTOR's upper layers are written by an AI. They get searched next to the real text. So their mistakes become memory mistakes.
RAPTOR's own check was small. The authors looked at 150 summaries. "About 4% of the summaries contained minor hallucinations," they wrote . A hallucination is a made-up bit. They said the mistakes did not spread up the tree.
Bigger outside checks look worse. The FABLES team had people check 3,158 claims from AI book summaries . Those summaries were built in layers, like RAPTOR. The best AI got 90.89% of claims right. GPT-3.5-Turbo got 71.52% right. RAPTOR used that same family of AI. Computer graders missed many mistakes. "None correlates strongly with human annotations," the team wrote . Book summaries and tree summaries are not the same thing. But the gap is big enough to be careful. Another study found layered summaries read smoothly but drop details .
Memory benchmarks point the same way. LongMemEval reports that "replacing sessions or rounds with extracted summaries or facts negatively impacts QA performance" . Breaking sessions into facts helped only on multi-session reasoning questions . Using extracted facts as additional keys to raw sessions, rather than as replacements, improved recall by 9.4% and accuracy by 5.4% on average . SeCom measured summary-based memories below raw turn-, session- or topic-segment memories on LoCoMo, with a recursive-summary baseline at 56.25 against 71.57 for its segment-level method, both using a BM25 retriever. The authors attribute the gap to "the loss of crucial details during the process of converting dialogues into summaries" . A 2026 preprint found an even sharper gap within a single pipeline, with rolling summaries collapsing LoCoMo accuracy to 5.7% against 43.9% for verbatim chunks, and concluded that "structured memory should augment verbatim text rather than replace it" . RAPTOR keeps its leaves, which helps. But its collapsed retrieval lets summaries compete with leaves for the same token budget, and HippoRAG 2's analysis suggests that competition costs accuracy on factual questions .
There is also a question of whether the summary text carries the benefit at all. A 2026 preprint built a tree with no LLM summaries and reports that it matches or beats abstractive RAPTOR at equal token budgets, attributing the gain to "navigation rather than generated summary content" . That is a single, recent, unreviewed study, but it fits RAPTOR's own finding that a contiguous tree was almost as good as a clustered one .
What production memory systems do instead
None of the production agent-memory systems we examined uses a RAPTOR-style recursive summary tree.
Mem0 extracts and updates discrete facts, with an optional graph variant . On LoCoMo, in the vendor's own evaluation, it scored 66.88 on an LLM-judge metric against 72.90 for full context, with a 95th-percentile latency of 1.44 seconds against 17.12 seconds . Full context remained the most accurate system in that table.
Zep stores a bi-temporal knowledge graph whose edges carry validity intervals, so newer facts invalidate older ones . In its own LongMemEval runs with GPT-4o, it scored 71.2% against 60.2% for full context, with the largest gains on temporal reasoning. Its authors note that "periodic community refreshes remain necessary" for its higher-level summaries . The paper's comparison table also lists a recursive-summarisation baseline, carried over from MemGPT's evaluation, at 35.3% on deep memory retrieval .
A-Mem (NeurIPS 2025) writes linked notes, and a new note can rewrite its neighbours' context, keywords and tags . MemoryOS (EMNLP 2025) groups dialogue pages into topic segments and uses a "heat" score to promote or evict them . H-MEM (EACL 2026) builds a four-level index from domain down to episode and adds forgetting . HiMem keeps episodes immutable and lets an abstract note layer be updated with typed add, update and delete operations . RMM (ACL 2025) argues that "rigid memory granularity fails to capture the natural semantic structure of conversations" and learns which granularity to retrieve .
Frameworks lean simpler still. Letta's archival memory is a searchable store in which agents "decide what's worth remembering long-term" , with background agents that "review recent conversations, consolidate useful lessons, and update memory" . Anthropic's memory tool is a directory of files the model edits through tool calls, where "Claude only requests memory operations" and the application executes them . Where RAPTOR does appear in tooling, it is a document-indexing option. RAGFlow warns that enabling it "requires significant memory, computational resources, and tokens" , and LlamaIndex's RAPTOR pack is now marked "deprecated and no longer maintained" .
The common thread is that hierarchy survives, but as an index over durable raw records, with explicit write, update and forget operations. A 2025 survey of agent memory groups tree memories such as MemTree with other flat, "planar" forms, and treats multi-layer designs as a separate class .
Where the evidence disagrees
Is RAPTOR a strong baseline or a weak one? It depends on what it is compared with. Against BM25, Contriever or an untuned vanilla RAG it often wins . Against a strong modern embedder or order-preserving retrieval at a matched budget it usually loses . BM25 beating RAPTOR on MemoryAgentBench , while RAPTOR beat BM25 in its own paper , suggests that configuration, chunking and the incremental setting matter a great deal. Contested.
Do the summaries help or hurt? RAPTOR's ablation shows all layers together beat any single layer , and CAM found RAPTOR strong on long-novel reading . HippoRAG 2 blames the summaries for RAPTOR's factual losses , and a recent preprint finds a summary-free tree just as good . A reasonable reconciliation is that summaries help thematic and whole-document questions and hurt pinpoint recall, which is what most memory queries are. Contested.
How faithful are the summaries? RAPTOR's 4% figure comes from 150 nodes checked by the authors . Independent book-level audits find about 9% to 29% of claims unfaithful depending on the model . We found no independent node-level audit of a RAPTOR tree. Emerging.
Most of the evidence comes from competitors. HippoRAG 2, MemTree, CAM, SiReRAG and EraRAG each propose a rival method . The study with a RAPTOR co-author and the benchmark papers are the closest to neutral, and they are among the least favourable to RAPTOR.
What this means in practice
For someone building an agent's long-term memory today, the evidence supports a few concrete choices. These are our interpretation, not tested prescriptions.
- Start with a strong flat baseline. A good embedding model, hybrid with BM25, retrieving raw turns or sessions, is the bar any structure must clear. Several independent studies show RAPTOR failing to clear it on factual recall .
- Keep raw records as ground truth. Store verbatim episodes, and treat summaries and extracted facts as extra keys that point back to them .
- If you want layered summaries, build them online. MemTree-style insertion costs a few LLM calls per memory . Batch RAPTOR rebuilds cost thousands .
- Handle time and contradiction explicitly. Clustering by meaning puts "lives in Sydney" and "moved to Perth" in the same cluster, and a summariser may blend them. Timestamps and validity intervals, as in Zep, or typed update operations, as in HiMem, address this directly .
- Use RAPTOR where it was designed to work. For static long documents with thematic questions, such as a policy manual, a codebase's design docs or a book, a RAPTOR index remains a reasonable and relatively cheap choice .
- Preserve order. Simply putting retrieved chunks back in their original order gave several points over both RAPTOR and vanilla top-k in one study . For conversations, chronological order is the natural equivalent, though that is untested.
Memory tests agree. LongMemEval tested this. Its finding: "replacing sessions or rounds with extracted summaries or facts negatively impacts QA performance" . QA means question answering. Breaking chats into facts only helped on questions spread over many chats . Using facts as extra labels on real chats helped instead. It found the right chat 9.4% more often. It answered 5.4% more questions right .
SeCom found summaries scored lower than real chat pieces . A rolling summary scored 56.25. SeCom's chat pieces scored 71.57 . A 2026 paper found an even bigger gap. Rolling summaries scored 5.7%. Real chat pieces scored 43.9% . "Structured memory should augment verbatim text rather than replace it," it says . Verbatim means word for word.
RAPTOR does keep its real chunks. That helps. But summaries and chunks fight for the same reading space. HippoRAG 2's results suggest that fight costs points on fact questions .
Do the summaries even matter? A 2026 paper built a tree with no AI summaries at all . It matched or beat RAPTOR at the same reading size. The authors credit "navigation rather than generated summary content" . That is one new paper, not yet checked by others. But it fits RAPTOR's own test. A tree of neighbouring text did almost as well as meaning groups .
What real memory products do
None of the memory products we looked at uses a RAPTOR tree.
Mem0 pulls out single facts and keeps them up to date . In its makers' own test, it scored 66.88. Reading the whole chat scored 72.90. But Mem0 was much faster. Its slow answers took 1.44 seconds. Reading everything took 17.12 seconds . Reading everything was still the most accurate.
Zep keeps a web of facts. Each fact has dates for when it was true . So a new fact can retire an old one. In its makers' test, it scored 71.2%. Reading everything scored 60.2%. It helped most with time questions . Its authors say "periodic community refreshes remain necessary" for its summaries . Their table also lists a rolling summary from an older test. It scored just 35.3% .
A-Mem writes linked notes . A new note can update the notes around it. MemoryOS groups chat pages by topic . A "heat" score decides what to keep and what to drop. H-MEM builds a four-level index . It lets old memories fade. HiMem never changes its raw memories . It keeps a notes layer on top that can add, update and delete. RMM says "rigid memory granularity fails to capture the natural semantic structure of conversations" . It learns which size of memory to fetch.
Tool makers keep it even simpler. In Letta, agents "decide what's worth remembering long-term" . Helper agents "review recent conversations, consolidate useful lessons, and update memory" . Anthropic's memory tool is just a folder of files . "Claude only requests memory operations," the guide says. The app does the actual work .
Where RAPTOR shows up in tools, it is for documents. RAGFlow warns it "requires significant memory, computational resources, and tokens" . The LlamaIndex RAPTOR add-on is now "deprecated and no longer maintained" . Deprecated means retired.
So layers live on. But they sit on top of real records. And they come with clear ways to write, update and forget. One big 2025 review puts trees like MemTree with the flat memory types .
Where the experts disagree
Is RAPTOR strong or weak? It depends on the rival. It often beats old word search and basic search . It usually loses to strong modern search at the same reading size . Word search beat RAPTOR on MemoryAgentBench . But RAPTOR beat word search in its own paper . So setup matters a lot. Contested.
Do the summaries help or hurt? Using all levels beat using one level . One team found RAPTOR strong on long novels . Another team blames the summaries for missed facts . A new paper found a tree with no summaries just as good . Our best guess: summaries help with big-picture questions. They hurt when you need one exact fact. Memory questions are mostly the second kind. Contested.
How true are the summaries? RAPTOR's 4% comes from 150 summaries its authors checked . Outside checks looked at book summaries. About 9% to 29% of claims were wrong, depending on the AI . Nobody outside has checked RAPTOR's own summaries yet. Emerging.
Most tests come from rivals. HippoRAG 2, MemTree, CAM, SiReRAG and EraRAG each sell their own method . The fairest tests are the big test papers . So is the one with a RAPTOR author . Those are some of the worst for RAPTOR.
What this means for people building AI helpers
Here is what we think the evidence suggests. These are our ideas, not tested rules.
- Start with good simple search. Use a strong search tool plus word search. Search the real chat turns. Any fancy structure must beat that. Several teams found RAPTOR doesn't, for facts .
- Keep the real records. Store chats word for word. Use summaries and facts as extra labels that point back to them .
- If you want layers, grow them as you go. MemTree's way costs a few AI calls per memory . Rebuilding RAPTOR costs thousands .
- Track time and changes on purpose. Meaning groups put "lives in Sydney" next to "moved to Perth". A summary might blend them. Dates on facts help, like in Zep. So do clear update steps, like in HiMem .
- Use RAPTOR where it fits. Some documents don't change and need big-picture answers. For those, it is still a fair and cheap choice . Think of a rulebook or a long book.
- Keep things in order. Putting found pieces back in their first order helped a lot in one study . For chats, that order is time order. Nobody has tested that yet.
Open questions and opportunities
- A RAPTOR baseline on full LoCoMo and LongMemEval. No published study has run one. MemoryAgentBench's 27.0 overall comes from a single configuration .
- Time-aware trees. Could clusters be constrained by time window as well as meaning, so that summaries describe a period rather than blending periods? RAPTOR's contiguous-window ablation hints this costs little accuracy. Speculation.
- Summaries with citations. Generative Agents' reflections cite the memories they rest on . Requiring every summary node to point to its supporting leaves would make faithfulness checkable and deletion propagable. Speculation.
- Node-level faithfulness audits. An independent human audit of RAPTOR and MemTree nodes, using a FABLES-style protocol , would settle the gap between 4% and the book-level figures.
- Reproducibility. We found no study of run-to-run variance from RAPTOR's UMAP and mixture-model clustering, and RAPTOR's own tables report no variance .
Limitations of this review
- We read papers through their published HTML or PDF text. Some table cells were extracted programmatically and checked by a second pass, but we did not rerun any experiment.
- Several sources are preprints (adRAP, EraRAG, NavTree, HiMem, GraphRAG-Bench's domain study, Fidelity Before Structure, Zep). Mem0 and Zep are vendor-authored. We label these throughout.
- RAPTOR implementations differ across papers in chunk size, summariser model and retrieval mode, and many papers do not report these settings. Cross-paper numbers are not directly comparable.
- LoCoMo results do not always reproduce across papers. For example, MemoryOS's reproduction of A-Mem's multi-hop F1 differs substantially from A-Mem's own figure . We avoid cross-paper LoCoMo comparisons for that reason.
- We could not confirm from source code whether the official RAPTOR implementation can add documents to an existing tree. Its README documents an
add_documentscall but does not describe update behaviour. - Our searches were in English and centred on ML venues. Work in information retrieval and database venues may be under-represented.
Method
Date. Research conducted 22 November 2026.
Lines of inquiry. Five parallel lines covered foundations (RAPTOR and its precursors), the frontier (2024–2026 memory systems), evidence and benchmarks, critique (negative results, cost, faithfulness) and applied practice (implementations and production systems).
Databases and sources. arXiv, OpenReview, ACL Anthology, PMLR, ICLR, NeurIPS and AAAI proceedings, PVLDB, and official documentation and repositories.
Example queries. "RAPTOR collapsed tree QuALITY"; "MemoryAgentBench RAPTOR"; "HippoRAG 2 RAPTOR table"; "MemTree dynamic tree memory"; "incremental RAPTOR dynamic datasets"; "LongMemEval summaries knowledge update"; "FABLES faithfulness book-length summarization"; "Mem0 LoCoMo latency"; "Zep temporal knowledge graph".
Inclusion criteria. Primary sources that describe RAPTOR's mechanism, report RAPTOR as a measured baseline, propose hierarchical or summary-based agent memory, or define the benchmarks used. Blogs and aggregators were excluded except for one vendor documentation page.
Screening. About 165 sources were screened across the five lines. 40 were included.
Verification. An independent verification pass re-checked every reference's metadata, every excerpt against its source, and every number against its table, before writing.
Questions nobody has answered yet
- A fair RAPTOR test on chat memory. Nobody has run RAPTOR on the full LoCoMo or LongMemEval tests. MemoryAgentBench tried only one setup .
- Trees that know about time. Could groups be made by time as well as meaning? Then each summary would describe one stretch of time. RAPTOR's neighbouring-text test hints this would cost little . This is our guess.
- Summaries that show their sources. Generative Agents' thoughts point to the memories behind them . If every summary did that, we could check it. We could also delete it when its sources go. This is our guess.
- A careful outside check of tree summaries. People could check RAPTOR and MemTree summaries by hand, like FABLES did for books . That would show who is right about the 4%.
- Repeat runs. Nobody has checked how much RAPTOR's scores wobble from run to run. Its own tables don't show this .
What this review might have missed
- We read papers as published. A second pass checked numbers against tables. We did not rerun any tests.
- Several sources are not yet checked by other scientists. These include adRAP, EraRAG, NavTree, HiMem, a textbook test, Fidelity Before Structure and Zep. Mem0 and Zep were written by the companies that sell them. We say this each time.
- Teams set up RAPTOR in different ways. Many don't say how. So scores from different papers don't match up exactly.
- LoCoMo scores don't always repeat between papers. MemoryOS got a very different score for A-Mem than A-Mem reported . So we avoid comparing LoCoMo scores across papers.
- We could not check RAPTOR's code. So we don't know if it can add new text to an old tree. Its guide shows an add step but doesn't explain it.
- We searched in English and mostly in AI research venues. We may have missed work from other fields.
How we did this
When. We did this research on 22 November 2026.
Lines of inquiry. We followed five lines at once. They were: where RAPTOR came from, the newest work, test results, criticism, and real-world use.
Where we looked. arXiv, OpenReview, ACL Anthology, PMLR, ICLR, NeurIPS, AAAI, PVLDB, and official guides and code pages.
Example searches. "RAPTOR collapsed tree QuALITY"; "MemoryAgentBench RAPTOR"; "HippoRAG 2 RAPTOR table"; "MemTree dynamic tree memory"; "incremental RAPTOR dynamic datasets"; "LongMemEval summaries knowledge update"; "FABLES faithfulness"; "Mem0 LoCoMo latency"; "Zep temporal knowledge graph".
What we kept. We kept papers that explain RAPTOR or test it. We kept papers about layered or summary memory for AI helpers. We kept the papers behind the memory tests. We left out blogs, except one company guide.
Numbers. We looked at about 165 sources. We kept 40.
Checking. A separate checking pass went over every reference before writing. It checked titles and authors. It checked each quote word for word. It checked each number against its table.
