Hierarchical Document Summarization

Multi-phase summarization for long documents using map-reduce pattern. Use this workflow for documents >100 chunks where single-pass summarization would exceed context limits or produce incomplete results. Phases: 1. Document Analysis - Get structure and plan segmentation 2. Segment Summaries (Map) - Summarize each segment independently 3. Summary Reduction (Reduce) - Combine segment summaries 4. Final Synthesis - Create coherent final summary This workflow can handle documents of arbitrar...

Details

Multi-phase summarization for long documents using map-reduce pattern. Use this workflow for documents >100 chunks where single-pass summarization would exceed context limits or produce incomplete results. Phases: Document Analysis - Get structure and plan segmentation Segment Summaries (Map) - Summarize each segment independently Summary Reduction (Reduce) - Combine segment summaries Final Synthesis - Create coherent final summary This workflow can handle documents of arbitrary length by processing them in manageable chunks and then combining the results.