import RetrievalQAExampleSources from "@examples/chains/retrieval_qa_sources.ts";
import CodeBlock from "@theme/CodeBlock";

## Return Source Documents
Additionally, we can return the source documents used to answer the question by specifying an optional parameter when constructing the chain.


<CodeBlock language="typescript">{RetrievalQAExampleSources}</CodeBlock>