SubQuestionQueryEngine
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:18
SubQuestionQueryEngine decomposes a question into subquestions and then
Extends
Section titled “Extends”BaseQueryEngine
Constructors
Section titled “Constructors”Constructor
Section titled “Constructor”new SubQuestionQueryEngine(
init):SubQuestionQueryEngine
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:24
Parameters
Section titled “Parameters”questionGen
Section titled “questionGen”BaseQuestionGenerator
responseSynthesizer
Section titled “responseSynthesizer”BaseSynthesizer
queryEngineTools
Section titled “queryEngineTools”BaseTool<any>[]
Returns
Section titled “Returns”SubQuestionQueryEngine
Overrides
Section titled “Overrides”BaseQueryEngine.constructor
Properties
Section titled “Properties”responseSynthesizer
Section titled “responseSynthesizer”responseSynthesizer:
BaseSynthesizer
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:19
questionGen
Section titled “questionGen”questionGen:
BaseQuestionGenerator
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:20
queryEngines
Section titled “queryEngines”queryEngines:
BaseTool<any>[]
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:21
metadatas
Section titled “metadatas”metadatas:
ToolMetadata[]
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:22
Methods
Section titled “Methods”_query()
Section titled “_query()”_query(
strOrQueryBundle,stream?):Promise<EngineResponse|AsyncIterable<EngineResponse,any,any>>
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:38
Parameters
Section titled “Parameters”strOrQueryBundle
Section titled “strOrQueryBundle”QueryType
stream?
Section titled “stream?”boolean
Returns
Section titled “Returns”Promise<EngineResponse | AsyncIterable<EngineResponse, any, any>>
Overrides
Section titled “Overrides”BaseQueryEngine._query
_getPrompts()
Section titled “_getPrompts()”
protected_getPrompts():PromptsRecord
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:77
Returns
Section titled “Returns”PromptsRecord
Overrides
Section titled “Overrides”BaseQueryEngine._getPrompts
_updatePrompts()
Section titled “_updatePrompts()”
protected_updatePrompts():void
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:81
Returns
Section titled “Returns”void
Overrides
Section titled “Overrides”BaseQueryEngine._updatePrompts
_getPromptModules()
Section titled “_getPromptModules()”
protected_getPromptModules():Record<string,any>
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:84
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
Section titled “Returns”Record<string, any>
Overrides
Section titled “Overrides”BaseQueryEngine._getPromptModules
fromDefaults()
Section titled “fromDefaults()”
staticfromDefaults(init):SubQuestionQueryEngine
Defined in: .build/typescript/packages/llamaindex/src/engines/query/SubQuestionQueryEngine.ts:91
Parameters
Section titled “Parameters”queryEngineTools
Section titled “queryEngineTools”BaseTool<any>[]
questionGen?
Section titled “questionGen?”BaseQuestionGenerator
responseSynthesizer?
Section titled “responseSynthesizer?”BaseSynthesizer
Returns
Section titled “Returns”SubQuestionQueryEngine