Class: RouterQueryEngine
A query engine that uses multiple query engines and selects the best one.
Hierarchy
-
↳
RouterQueryEngine
Implements
BaseQueryEngine
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:67
Properties
metadatas
• Private
metadatas: RouterQueryEngineMetadata
[]
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:63
queryEngines
• Private
queryEngines: BaseQueryEngine
[]
Defined in
packages/core/src/engines/query/RouterQueryEngine.ts:62