Class: RouterQueryEngine
A query engine that uses multiple query engines and selects the best one.
Hierarchy
-
↳
RouterQueryEngine
Implements
Constructors
constructor
• new RouterQueryEngine(init
): RouterQueryEngine
Parameters
Name | Type |
---|---|
init | Object |
init.queryEngineTools | RouterQueryEngineTool [] |
init.selector | BaseSelector |
init.serviceContext? | ServiceContext |
init.summarizer? | TreeSummarize |
init.verbose? | boolean |
Returns
Overrides
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:65
Properties
metadatas
• Private
metadatas: RouterQueryEngineMetadata
[]
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:61
queryEngines
• Private
queryEngines: BaseQueryEngine
[]
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:60
selector
• Private
selector: BaseSelector
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:59
summarizer
• Private
summarizer: TreeSummarize
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:62
verbose
• Private
verbose: boolean
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:63
Methods
_getPromptModules
▸ _getPromptModules(): Record
<string
, any
>
Returns
Record
<string
, any
>
Overrides
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:83
_getPrompts
▸ _getPrompts(): PromptsDict
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:79
_updatePrompts
▸ _updatePrompts(promptsDict
): void
Parameters
Name | Type |
---|---|
promptsDict | PromptsDict |
Returns
void
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:87