Load question answering chain.
load_qa_chain(
llm: BaseLanguageModel,
chain_type: str = 'stuff',
verbose: bool | None = None,
callback_manager: BaseCallbackManager | 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", "map_rerank", and "refine". |
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. |
callback_manager | BaseCallbackManager | None | Default: NoneCallback manager to use for the chain. |
**kwargs | Any | Default: {}Additional keyword arguments. |