# load_qa_with_sources_chain

> **Function** in `langchain_classic`

📖 [View in docs](https://reference.langchain.com/python/langchain-classic/chains/qa_with_sources/loading/load_qa_with_sources_chain)

Load a question answering with sources chain.

## Signature

```python
load_qa_with_sources_chain(
    llm: BaseLanguageModel,
    chain_type: str = 'stuff',
    verbose: bool | None = None,
    **kwargs: Any = {},
) -> BaseCombineDocumentsChain
```

## Parameters

| Name | Type | Required | Description |
|------|------|----------|-------------|
| `llm` | `BaseLanguageModel` | Yes | Language Model to use in the chain. |
| `chain_type` | `str` | No | Type of document combining chain to use. Should be one of "stuff", "map_reduce", "refine" and "map_rerank". (default: `'stuff'`) |
| `verbose` | `bool \| None` | No | Whether chains should be run in verbose mode or not. Note that this applies to all chains that make up the final chain. (default: `None`) |
| `**kwargs` | `Any` | No | Additional keyword arguments. (default: `{}`) |

## Returns

`BaseCombineDocumentsChain`

A chain to use for question answering with sources.

## ⚠️ Deprecated

Deprecated since version 0.2.13.

---

[View source on GitHub](https://github.com/langchain-ai/langchain/blob/8fec4e7ceee2c368b068c49f9fed453276e210e7/libs/langchain/langchain_classic/chains/qa_with_sources/loading.py#L167)