Back to guide
Markdown view
# Summarizing long documents

Chunk, summarize, and merge outputs with quality checks.

- Date: Apr 24, 2024
- Reading time: 11 min
- Level: Beginner
- Tags: Completions, Text, Summarization

## Takeaways
- Use map-reduce for long inputs.
- Dedupe facts across chunks.
- Validate the final summary with spot checks.

## Map-reduce summaries

Summarize each chunk separately, then merge into a final summary.

## Dedupe facts

Remove repeated facts before producing the final summary.

## Quality checks

Run a final verification pass to confirm key facts and numbers.