Class: MultiModalResponseSynthesizer
A BaseSynthesizer is used to generate a response from a query and a list of nodes. TODO: convert response builders to implement this interface (similar to Python).
Implements
Constructors
constructor
• new MultiModalResponseSynthesizer(«destructured»?
)
Parameters
Name | Type |
---|---|
«destructured» | Partial <MultiModalResponseSynthesizer > |
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:20
Properties
metadataMode
• metadataMode: MetadataMode
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:17
serviceContext
• serviceContext: ServiceContext
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:16
textQATemplate
• textQATemplate: (__namedParameters
: Object
) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type |
---|---|
«destructured» | Object |
Returns
string
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:18
Methods
synthesize
▸ synthesize(query
, nodesWithScore
, parentEvent?
): Promise
<Response
>
Parameters
Name | Type |
---|---|
query | string |
nodesWithScore | NodeWithScore <Metadata >[] |
parentEvent? | Event |
Returns
Promise
<Response
>
Implementation of
Defined in
packages/core/src/synthesizers/MultiModalResponseSynthesizer.ts:30