Ask a question to get started
Enter to send•Shift+Enter new line
RetrievalQAWithSourcesChain()
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.
Index to connect to.
Reduce the number of results to return from store based on tokens limit
Restrict the docs to return from store based on tokens, enforced only for StuffDocumentChain and if reduce_k_below_max_tokens is to true
Question-answering with sources over an index.
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.