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
Source
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:25
Properties
metadataMode
metadataMode:
MetadataMode
Source
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:22
serviceContext?
optional
serviceContext:ServiceContext
Source
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:21
textQATemplate()
textQATemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Source
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:23
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Returns
Record
<string
, any
>
Inherited from
PromptMixin
. _getPromptModules
Source
packages/core/src/prompts/Mixin.ts:82
_getPrompts()
protected
_getPrompts():object
Returns
object
textQATemplate()
textQATemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Overrides
Source
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:37
_updatePrompts()
protected
_updatePrompts(promptsDict
):void
Parameters
• promptsDict
• promptsDict.textQATemplate
Returns
void