Class: RetrieverQueryEngine
A query engine that uses a retriever to query an index and then synthesizes the response.
Hierarchy
-
↳
RetrieverQueryEngine
Implements
Constructors
constructor
• new RetrieverQueryEngine(retriever
, responseSynthesizer?
, preFilters?
, nodePostprocessors?
): RetrieverQueryEngine
Parameters
Name | Type |
---|---|
retriever | BaseRetriever |
responseSynthesizer? | BaseSynthesizer |
preFilters? | unknown |
nodePostprocessors? | BaseNodePostprocessor [] |
Returns
Overrides
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:24
Properties
nodePostprocessors
• nodePostprocessors: BaseNodePostprocessor
[]
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:21
preFilters
• Optional
preFilters: unknown
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:22
responseSynthesizer
• responseSynthesizer: BaseSynthesizer
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:20
retriever
• retriever: BaseRetriever
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:19
Methods
_getPromptModules
▸ _getPromptModules(): Object
Returns
Object
Name | Type |
---|---|
responseSynthesizer | BaseSynthesizer |
Overrides
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:42
_getPrompts
▸ _getPrompts(): PromptsDict
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:78
_updatePrompts
▸ _updatePrompts(promptsDict
): void
Parameters
Name | Type |
---|---|
promptsDict | PromptsDict |
Returns
void
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:86