Skip to main content

Class: MultiModalResponseSynthesizer

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

Extends

Implements

Constructors

new MultiModalResponseSynthesizer()

new MultiModalResponseSynthesizer(__namedParameters): MultiModalResponseSynthesizer

Parameters

__namedParameters: Partial<MultiModalResponseSynthesizer> = {}

Returns

MultiModalResponseSynthesizer

Overrides

PromptMixin.constructor

Defined in

packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:22

Properties

metadataMode

metadataMode: MetadataMode

Defined in

packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:19


serviceContext?

optional serviceContext: ServiceContext

Defined in

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


textQATemplate

textQATemplate: TextQAPrompt

Defined in

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

Methods

_getPromptModules()

protected _getPromptModules(): ModuleRecord

Return a dictionary of sub-modules within the current module that also implement PromptMixin (so that their prompts can also be get/set).

Can be blank if no sub-modules.

Returns

ModuleRecord

Implementation of

BaseSynthesizer._getPromptModules

Overrides

PromptMixin._getPromptModules

Defined in

packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:34


_getPrompts()

protected _getPrompts(): object

Returns

object

textQATemplate

textQATemplate: TextQAPrompt

Implementation of

BaseSynthesizer._getPrompts

Overrides

PromptMixin._getPrompts

Defined in

packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:38


_updatePrompts()

protected _updatePrompts(promptsDict): void

Parameters

promptsDict

promptsDict.textQATemplate: TextQAPrompt

Returns

void

Implementation of

BaseSynthesizer._updatePrompts

Overrides

PromptMixin._updatePrompts

Defined in

packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:44


getPrompts()

getPrompts(): PromptsRecord

Returns

PromptsRecord

Implementation of

BaseSynthesizer.getPrompts

Inherited from

PromptMixin.getPrompts

Defined in

packages/core/dist/prompts/index.d.ts:58


synthesize()

synthesize(query, stream)

synthesize(query, stream): Promise<AsyncIterable<EngineResponse>>

Parameters

query: SynthesizeQuery

stream: true

Returns

Promise<AsyncIterable<EngineResponse>>

Implementation of

BaseSynthesizer.synthesize

Defined in

packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:52

synthesize(query, stream)

synthesize(query, stream?): Promise<EngineResponse>

Parameters

query: SynthesizeQuery

stream?: false

Returns

Promise<EngineResponse>

Implementation of

BaseSynthesizer.synthesize

Defined in

packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:56


updatePrompts()

updatePrompts(prompts): void

Parameters

prompts: PromptsRecord

Returns

void

Implementation of

BaseSynthesizer.updatePrompts

Inherited from

PromptMixin.updatePrompts

Defined in

packages/core/dist/prompts/index.d.ts:59


validatePrompts()

validatePrompts(promptsDict, moduleDict): void

Parameters

promptsDict: PromptsRecord

moduleDict: ModuleRecord

Returns

void

Implementation of

BaseSynthesizer.validatePrompts

Inherited from

PromptMixin.validatePrompts

Defined in

packages/core/dist/prompts/index.d.ts:57