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:19
Properties
metadataMode
metadataMode:
MetadataMode
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:16
serviceContext?
optional
serviceContext:ServiceContext
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:15
textQATemplate()
textQATemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:17
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Returns
Record
<string
, any
>
Inherited from
Defined in
packages/llamaindex/src/prompts/Mixin.ts:83
_getPrompts()
protected
_getPrompts():object
Returns
object
textQATemplate()
textQATemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Overrides
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:31
_updatePrompts()
protected
_updatePrompts(promptsDict
):void
Parameters
• promptsDict
• promptsDict.textQATemplate
Returns
void
Overrides
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:37
getPrompts()
getPrompts():
PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Defined in
packages/llamaindex/src/prompts/Mixin.ts:27
synthesize()
synthesize(query, stream)
synthesize(
query
,stream
):Promise
<AsyncIterable
<EngineResponse
>>
Parameters
• query: SynthesizeQuery
• stream: true
Returns
Promise
<AsyncIterable
<EngineResponse
>>
Implementation of
Defined in
packages/llamaindex/src/synthesizers/MultiModalResponseSynthesizer.ts:45
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:49
updatePrompts()
updatePrompts(
promptsDict
):void
Updates the prompts in the mixin and its modules
Parameters
• promptsDict: PromptsDict
Returns
void
Inherited from
Defined in
packages/llamaindex/src/prompts/Mixin.ts:48
validatePrompts()
validatePrompts(
promptsDict
,moduleDict
):void
Validates the prompt keys and module keys
Parameters
• promptsDict: PromptsDict
• moduleDict: ModuleDict
Returns
void