Class: SubQuestionQueryEngine
SubQuestionQueryEngine decomposes a question into subquestions and then
Implements
Constructors
constructor
• new SubQuestionQueryEngine(init
)
Parameters
Name | Type |
---|---|
init | Object |
init.queryEngineTools | QueryEngineTool [] |
init.questionGen | BaseQuestionGenerator |
init.responseSynthesizer | ResponseSynthesizer |
Defined in
packages/core/src/QueryEngine.ts:89
Properties
metadatas
• metadatas: ToolMetadata
[]
Defined in
packages/core/src/QueryEngine.ts:87
queryEngines
• queryEngines: Record
<string
, BaseQueryEngine
>
Defined in
packages/core/src/QueryEngine.ts:86
questionGen
• questionGen: BaseQuestionGenerator
Defined in
packages/core/src/QueryEngine.ts:85
responseSynthesizer
• responseSynthesizer: ResponseSynthesizer
Defined in
packages/core/src/QueryEngine.ts:84
Methods
query
▸ query(query
): Promise
<Response
>
Query the query engine and get a response.
Parameters
Name | Type |
---|---|
query | string |