Skip to main content

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:

from langchain.chains.summarize import load_summarize_chain
chain = load_summarize_chain(llm, chain_type="map_reduce")
chain.run(docs)

API Reference:

The following resources exist:

Additional related resources include: