Class BaseRetrievalQA
java.lang.Object
com.hw.langchain.chains.base.Chain
com.hw.langchain.chains.retrieval.qa.base.BaseRetrievalQA
- Direct Known Subclasses:
RetrievalQa
- Author:
- HamaWhite
-
Field Summary
-
Constructor Summary
ModifierConstructorDescriptionprotected
BaseRetrievalQA
(BaseCombineDocumentsChain combineDocumentsChain) -
Method Summary
Modifier and TypeMethodDescriptionasyncInnerCall
(Map<String, Object> inputs) Runs the logic of this chain and returns the async output.Get documents to do question answering over.Run getRelevantText and llm on input query.Retrieves the list of input keys that this chain expects.Retrieves the list of output keys that this chain expects.
-
Constructor Details
-
BaseRetrievalQA
-
-
Method Details
-
inputKeys
Description copied from class:Chain
Retrieves the list of input keys that this chain expects. -
outputKeys
Description copied from class:Chain
Retrieves the list of output keys that this chain expects.- Specified by:
outputKeys
in classChain
- Returns:
- the list of output keys
-
getDocs
Get documents to do question answering over. -
innerCall
Run getRelevantText and llm on input query. -
asyncInnerCall
Description copied from class:Chain
Runs the logic of this chain and returns the async output.- Overrides:
asyncInnerCall
in classChain
- Parameters:
inputs
- the inputs to be processed by the chain- Returns:
- a map flux containing the output generated event by the chain
-