mirror of
https://github.com/hwchase17/langchain
synced 2024-11-08 07:10:35 +00:00
19 lines
716 B
Plaintext
19 lines
716 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:
|
|
- [Modules for working with documents](/docs/modules/data_connection): Core components for working with documents.
|