انتقل إلى المحتوى الرئيسي

Class: MultiModalResponseSynthesizer

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

Implements

Constructors

constructor

new MultiModalResponseSynthesizer(«destructured»?)

Parameters

NameType
«destructured»Partial<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: Object) => string

Type declaration

▸ («destructured»): string

Parameters
NameType
«destructured»Object
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