Class: RouterQueryEngine
A query engine that uses multiple query engines and selects the best one.
Extends
Constructors
new RouterQueryEngine()
new RouterQueryEngine(
init
):RouterQueryEngine
Parameters
• init
• init.queryEngineTools: RouterQueryEngineTool
[]
• init.selector: BaseSelector
• init.serviceContext?: ServiceContext
• init.summarizer?: BaseSynthesizer
• init.verbose?: boolean
Returns
Overrides
Defined in
packages/llamaindex/src/engines/query/RouterQueryEngine.ts:60
Methods
_getPromptModules()
protected
_getPromptModules():object
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
object
selector
selector:
BaseSelector
summarizer
summarizer:
BaseSynthesizer
Overrides
BaseQueryEngine
._getPromptModules
Defined in
packages/llamaindex/src/engines/query/RouterQueryEngine.ts:99
_getPrompts()
protected
_getPrompts():object
Returns
object
Overrides
Defined in
packages/llamaindex/src/engines/query/RouterQueryEngine.ts:93
_query()
_query(
strOrQueryBundle
,stream
?):Promise
<EngineResponse
>