Class: SubQuestionQueryEngine
SubQuestionQueryEngine decomposes a question into subquestions and then
Extends
Constructors
new SubQuestionQueryEngine()
new SubQuestionQueryEngine(
init
):SubQuestionQueryEngine
Parameters
• init
• init.queryEngineTools: BaseTool
<any
>[]
• init.questionGen: BaseQuestionGenerator
• init.responseSynthesizer: BaseSynthesizer
Returns
Overrides
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:24
Properties
_query
protected
readonly
_query:QueryFn
Inherited from
Defined in
packages/core/query-engine/dist/index.d.ts:27
metadatas
metadatas:
ToolMetadata
[]
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:22
queryEngines
queryEngines:
BaseTool
<any
>[]
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:21
questionGen
questionGen:
BaseQuestionGenerator
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:20
responseSynthesizer
responseSynthesizer:
BaseSynthesizer
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:19
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Return a dictionary of sub-modules within the current module that also implement PromptMixin (so that their prompts can also be get/set).
Can be blank if no sub-modules.
Returns
Record
<string
, any
>
Overrides
BaseQueryEngine
._getPromptModules
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:81
_getPrompts()
protected
_getPrompts():PromptsRecord
Returns
Overrides
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:75
_updatePrompts()
protected
_updatePrompts():void
Returns
void
Overrides
BaseQueryEngine
._updatePrompts
Defined in
packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:79
getPrompts()
getPrompts():
PromptsRecord
Returns
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:58