Class: SubQuestionQueryEngine
SubQuestionQueryEngine decomposes a question into subquestions and then
Hierarchy
-
↳
SubQuestionQueryEngine
Implements
Constructors
constructor
• new SubQuestionQueryEngine(init
): SubQuestionQueryEngine
Parameters
Name | Type |
---|---|
init | Object |
init.queryEngineTools | BaseTool <any >[] |
init.questionGen | BaseQuestionGenerator |
init.responseSynthesizer | BaseSynthesizer |
Returns
Overrides
Defined in
packages/core/src/engines/query/SubQuestionQueryEngine.ts:33
Properties
metadatas
• metadatas: ToolMetadata
[]
Defined in
packages/core/src/engines/query/SubQuestionQueryEngine.ts:31
queryEngines
• queryEngines: BaseTool
<any
>[]
Defined in
packages/core/src/engines/query/SubQuestionQueryEngine.ts:30
questionGen
• questionGen: BaseQuestionGenerator
Defined in
packages/core/src/engines/query/SubQuestionQueryEngine.ts:29
responseSynthesizer
• responseSynthesizer: BaseSynthesizer
Defined in
packages/core/src/engines/query/SubQuestionQueryEngine.ts:28
Methods
_getPromptModules
▸ _getPromptModules(): Record
<string
, any
>
Returns
Record
<string
, any
>
Overrides
Defined in
packages/core/src/engines/query/SubQuestionQueryEngine.ts:47
_getPrompts
▸ _getPrompts(): PromptsDict
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:78
_updatePrompts
▸ _updatePrompts(promptsDict
): void
Parameters
Name | Type |
---|---|
promptsDict | PromptsDict |
Returns
void
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:86
getPrompts
▸ getPrompts(): PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:27