Class: MultiModalResponseSynthesizer
A BaseSynthesizer is used to generate a response from a query and a list of nodes.
Hierarchy
-
↳
MultiModalResponseSynthesizer
Implements
Constructors
constructor
• new MultiModalResponseSynthesizer(«destructured»?
): MultiModalResponseSynthesizer
Parameters
Name | Type |
---|---|
«destructured» | Partial <MultiModalResponseSynthesizer > |
Returns
Overrides
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:25
Properties
metadataMode
• metadataMode: MetadataMode
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:22
serviceContext
• Optional
serviceContext: ServiceContext
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:21
textQATemplate
• textQATemplate: (__namedParameters
: { context
: undefined
| string
= ""; query
: undefined
| string
= "" }) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type | Default value |
---|---|---|
«destructured» | Object | undefined |
› context | undefined | string | "" |
› query | undefined | string | "" |
Returns
string
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:23
Methods
_getPromptModules
▸ _getPromptModules(): Record
<string
, any
>
Returns
Record
<string
, any
>
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:82
_getPrompts
▸ _getPrompts(): Object
Returns
Object
Name | Type |
---|---|
textQATemplate | (__namedParameters : { context : undefined | string = ""; query : undefined | string = "" }) => string |
Overrides
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:37
_updatePrompts
▸ _updatePrompts(promptsDict
): void
Parameters
Name | Type |
---|---|
promptsDict | Object |
promptsDict.textQATemplate | (__namedParameters : { context : undefined | string = ""; query : undefined | string = "" }) => string |
Returns
void
Overrides
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:43
getPrompts
▸ getPrompts(): PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Defined in
packages/core/src/prompts/Mixin.ts:27
synthesize
▸ synthesize(params
): Promise
<AsyncIterable
<Response
>>
Parameters
Name | Type |
---|---|
params | SynthesizeParamsStreaming |
Returns
Promise
<AsyncIterable
<Response
>>