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
Name | Type |
---|---|
retriever | BaseRetriever |
responseSynthesizer? | ResponseSynthesizer |
Defined in
Properties
responseSynthesizer
• responseSynthesizer: ResponseSynthesizer
Defined in
retriever
• retriever: BaseRetriever
Defined in
Methods
query
▸ query(query
, parentEvent?
): Promise
<Response
>
Query the query engine and get a response.
Parameters
Name | Type |
---|---|
query | string |
parentEvent? | Event |
Returns
Promise
<Response
>