Skip to main content

Class: RetrieverQueryEngine

A query engine that uses a retriever to query an index and then synthesizes the response.

Implements

Constructors

constructor

new RetrieverQueryEngine(retriever, responseSynthesizer?)

Parameters

NameType
retrieverBaseRetriever
responseSynthesizer?ResponseSynthesizer

Defined in

QueryEngine.ts:34

Properties

responseSynthesizer

responseSynthesizer: ResponseSynthesizer

Defined in

QueryEngine.ts:32


retriever

retriever: BaseRetriever

Defined in

QueryEngine.ts:31

Methods

query

query(query, parentEvent?): Promise<Response>

Query the query engine and get a response.

Parameters

NameType
querystring
parentEvent?Event

Returns

Promise<Response>

Implementation of

BaseQueryEngine.query

Defined in

QueryEngine.ts:45