Przejdź do głównej zawartości

Interface: BaseSynthesizer

A BaseSynthesizer is used to generate a response from a query and a list of nodes. TODO: convert response builders to implement this interface (similar to Python).

Implemented by

Methods

synthesize

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

Parameters

NameType
querystring
nodesWithScoreNodeWithScore<Metadata>[]
parentEvent?Event

Returns

Promise<Response>

Defined in

packages/core/src/synthesizers/types.ts:10