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
Overrides
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
Implementation of
BaseSynthesizer
._getPromptModules
Overrides
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:34
_getPrompts()
protected
_getPrompts():object
Returns
object
textQATemplate
textQATemplate:
TextQAPrompt
Implementation of
Overrides
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
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:44
getPrompts()
getPrompts():
PromptsRecord
Returns
Implementation of
Inherited from
Defined in
packages/core/dist/prompts/index.d.ts:58
synthesize()
synthesize(query, stream)
synthesize(
query
,stream
):Promise
<AsyncIterable
<EngineResponse
,any
,any
>>
Parameters
• query: SynthesizeQuery
• stream: true
Returns
Promise
<AsyncIterable
<EngineResponse
, any
, any
>>
Implementation of
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
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:56
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord
Returns
void
Implementation of
Inherited from
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
Defined in
packages/core/dist/prompts/index.d.ts:57