Load a question answering with sources chain.
load_qa_with_sources_chain(
llm: BaseLanguageModel,
chain_type: str = 'stuff',
verbose: bool | None = None,
**kwargs: Any = {}
) -> BaseCombineDocumentsChain| Name | Type | Description |
|---|---|---|
llm* | BaseLanguageModel | Language Model to use in the chain. |
chain_type | str | Default: 'stuff'Type of document combining chain to use. Should be one of "stuff", "map_reduce", "refine" and "map_rerank". |
verbose | bool | None | Default: NoneWhether chains should be run in verbose mode or not. Note that this applies to all chains that make up the final chain. |
**kwargs | Any | Default: {}Additional keyword arguments. |