Skip to main content

Class: MultiModalResponseSynthesizer

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).

Implements

Constructors

constructor

new MultiModalResponseSynthesizer(«destructured»?)

Parameters

NameType
«destructured»Partial<MultiModalResponseSynthesizer>

Defined in

packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:20

Properties

metadataMode

metadataMode: MetadataMode

Defined in

packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:17


serviceContext

serviceContext: ServiceContext

Defined in

packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:16


textQATemplate

textQATemplate: (__namedParameters: Object) => string

Type declaration

▸ («destructured»): string

Parameters
NameType
«destructured»Object
Returns

string

Defined in

packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:18

Methods

synthesize

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

Parameters

NameType
querystring
nodesWithScoreNodeWithScore<Metadata>[]
parentEvent?Event

Returns

Promise<Response>

Implementation of

BaseSynthesizer.synthesize

Defined in

packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:30