Aller au contenu principal

Class: MultiModalResponseSynthesizer

A BaseSynthesizer is used to generate a response from a query and a list of nodes.

Implements

Constructors

constructor

new MultiModalResponseSynthesizer(«destructured»?): MultiModalResponseSynthesizer

Parameters

NameType
«destructured»Partial<MultiModalResponseSynthesizer>

Returns

MultiModalResponseSynthesizer

Defined in

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

Properties

metadataMode

metadataMode: MetadataMode

Defined in

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


serviceContext

serviceContext: ServiceContext

Defined in

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


textQATemplate

textQATemplate: (__namedParameters: { context: undefined | string = ""; query: undefined | string = "" }) => string

Type declaration

▸ («destructured»): string

Parameters
NameTypeDefault value
«destructured»Objectundefined
› contextundefined | string""
› queryundefined | string""
Returns

string

Defined in

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

Methods

synthesize

synthesize(params): Promise<AsyncIterable<Response>>

Parameters

NameType
paramsSynthesizeParamsStreaming

Returns

Promise<AsyncIterable<Response>>

Implementation of

BaseSynthesizer.synthesize

Defined in

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

synthesize(params): Promise<Response>

Parameters

NameType
paramsSynthesizeParamsNonStreaming

Returns

Promise<Response>

Implementation of

BaseSynthesizer.synthesize

Defined in

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