langchain/docs/extras/use_cases/summarization.mdx
Davis Chase 87e502c6bc
Doc refactor (#6300)
Co-authored-by: jacoblee93 <jacoblee93@gmail.com>
Co-authored-by: Harrison Chase <hw.chase.17@gmail.com>
2023-06-16 11:52:56 -07:00

19 lines
816 B
Plaintext

# Summarization
Summarization involves creating a smaller summary of multiple longer documents.
This can be useful for distilling long documents into the core pieces of information.
The recommended way to get started using a summarization chain is:
```python
from langchain.chains.summarize import load_summarize_chain
chain = load_summarize_chain(llm, chain_type="map_reduce")
chain.run(docs)
```
The following resources exist:
- [Summarization notebook](/docs/modules/chains/popular/summarize.html): A notebook walking through how to accomplish this task.
Additional related resources include:
- [Utilities for working with documents](/api_reference/utils.html): Guides on how to use several of the utilities which will prove helpful for this task, including Text Splitters (for splitting up long documents).