load_summarize_chain#
- langchain_cohere.chains.summarize.summarize_chain.load_summarize_chain(llm: BaseLanguageModel, chain_type: str = 'stuff', **kwargs: Any) RunnableSerializable [source]#
Beta
- Makes use of Cohereβs grounded RAG summarization,
which may change in a later langchain-cohere version
Load summarizing chain.
- Parameters:
llm (BaseLanguageModel) β Language Model to use in the chain.
chain_type (str) β Type of document combining chain to use. Currently, only βstuffβ is supported in this implementation.
verbose β Whether chains should be run in verbose mode or not. Note that this applies to all chains that make up the final chain.
kwargs (Any)
- Returns:
A chain to use for summarizing.
- Return type:
Examples using load_summarize_chain