The Retrieval QA Chain is a powerful question-answering system that combines document retrieval with language model processing to provide accurate answers based on a given knowledge base.
retrievalQAChain
RetrievalQAChain
Return Source Documents
is false:
Return Source Documents
is true:
text
: The answer to the user’s question.sourceDocuments
: An array of documents used to generate the answer.