Retrieval QA (LangChain Chains)
https://python.langchain.com/docs/modules/chains/popular/vector_db_qa
RetrievalQA
👉langchain.chains.retrieval_qa.base.RetrievalQA
Chain types
Document QA
For a more detailed walkthrough of these types,
from_chain_type
stuff
map_reduce
Custom prompts
Document QA
Return Source Documents
RetrievalQA(..., return_source_documents=True)
RetrievalQAWithSourceChainもある
移行 Migrating from RetrievalQA