Class: RetrieverQueryEngine<Filters>
A query engine that uses a retriever to query an index and then synthesizes the response.
Type parameters
Name | Type |
---|---|
Filters | unknown |
Hierarchy
-
↳
RetrieverQueryEngine
Implements
Constructors
constructor
• new RetrieverQueryEngine<Filters
>(retriever
, responseSynthesizer?
, preFilters?
, nodePostprocessors?
): RetrieverQueryEngine
<Filters
>
Type parameters
Name | Type |
---|---|
Filters | unknown |
Parameters
Name | Type | Default value |
---|---|---|
retriever | BaseRetriever <Filters > | undefined |
responseSynthesizer | BaseSynthesizer | undefined |
preFilters? | Filters | undefined |
nodePostprocessors | BaseNodePostprocessor [] | [] |
Returns
RetrieverQueryEngine
<Filters
>
Overrides
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:25
Properties
nodePostprocessors
• nodePostprocessors: BaseNodePostprocessor
[] = []
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:31
preFilters
• Optional
preFilters: Filters
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:30
responseSynthesizer
• responseSynthesizer: BaseSynthesizer
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:27
retriever
• retriever: BaseRetriever
<Filters
>
Defined in
packages/core/src/engines/query/RetrieverQueryEngine.ts:26
Methods
_getPromptModules
▸ _getPromptModules(): Object