Class RetrievalQa
java.lang.Object
com.hw.langchain.chains.base.Chain
com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
com.hw.langchain.chains.retrieval.qa.base.RetrievalQa
Chain for question-answering against an index.
- Author:
- HamaWhite
-
Field Summary
-
Constructor Summary
ConstructorDescriptionRetrievalQa
(BaseCombineDocumentsChain combineDocumentsChain, BaseRetriever retriever) -
Method Summary
Modifier and TypeMethodDescriptionstatic BaseRetrievalQA
fromChainType
(BaseLanguageModel llm, ChainType chainType, BaseRetriever retriever) Load chain from chain type.static BaseRetrievalQA
fromChainType
(BaseLanguageModel llm, BaseRetriever retriever) Load chain from chain type.Get documents to do question answering over.Methods inherited from class com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
asyncInnerCall, innerCall, inputKeys, outputKeys
-
Constructor Details
-
RetrievalQa
-
-
Method Details
-
fromChainType
Load chain from chain type. -
fromChainType
public static BaseRetrievalQA fromChainType(BaseLanguageModel llm, ChainType chainType, BaseRetriever retriever) Load chain from chain type. -
getDocs
Description copied from class:BaseRetrievalQA
Get documents to do question answering over.- Specified by:
getDocs
in classBaseRetrievalQA
-
chainType
-