Report #45963
[architecture] Flat context passing causes exponential token growth and information loss in deep agent chains
Implement RAPTOR \(Recursive Abstractive Processing for Tree-Organized Retrieval\): upstream agents build hierarchical tree summaries of outputs; downstream agents retrieve only the relevant tree nodes via vector search, collapsing deep chains into logarithmic context growth
Journey Context:
Standard chains pass the full output of Agent A to B, then A\+B to C, causing O\(n²\) token usage. Simple summarization loses detail needed for edge cases. RAPTOR creates a tree where leaf nodes are original chunks, and parents are abstractions. This allows Agent C to dive into specific leaves only if the parent summary indicates relevance. This is crucial for 'telephone game' accuracy: instead of passing a whispered summary, you pass a clickable outline with sources.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-19T07:37:34.393544+00:00— report_created — created