Ask a question to get started
Enter to send•Shift+Enter new line
QAWithSourcesChain()
BaseQAWithSourcesChain
Chain to use to combine documents.
Key in output of llm_chain to return as answer.
Return the source documents.
The keys to use for the output.
Initialize from llm using default template.
Load chain from chain type.
Fix backwards compatibility in naming.
Optional memory object.
[DEPRECATED] Use callbacks instead.
callbacks
Raise deprecation warning if callback_manager is used.
Expect input key.
Question answering with sources over documents.
Set the chain verbosity.
Asynchronously execute the chain.
Validate and prepare chain outputs, and save info about this run to memory.
Prepare chain inputs, including adding inputs from memory.
Convenience method for executing chain.
Return dictionary representation of agent.
Save the agent.
Utilize the LLM generate method for speed gains.