Class: ResponseSynthesizer
A ResponseSynthesizer is used to generate a response from a query and a list of nodes.
Extends
Implements
Constructors
new ResponseSynthesizer()
new ResponseSynthesizer(
__namedParameters
):ResponseSynthesizer
Parameters
• __namedParameters= {}
• __namedParameters.metadataMode?: MetadataMode
= MetadataMode.NONE
• __namedParameters.responseBuilder?: ResponseBuilder
• __namedParameters.serviceContext?: ServiceContext
Returns
Overrides
Source
packages/llamaindex/src/synthesizers/ResponseSynthesizer.ts:25
Properties
metadataMode
metadataMode:
MetadataMode
Source
packages/llamaindex/src/synthesizers/ResponseSynthesizer.ts:23
responseBuilder
responseBuilder:
ResponseBuilder
Source
packages/llamaindex/src/synthesizers/ResponseSynthesizer.ts:22
Methods
_getPromptModules()
_getPromptModules():
object
Returns
object
Overrides
PromptMixin
. _getPromptModules
Source
packages/llamaindex/src/synthesizers/ResponseSynthesizer.ts:41
_getPrompts()
protected
_getPrompts():object
Returns
object
Overrides
Source
packages/llamaindex/src/synthesizers/ResponseSynthesizer.ts:45
_updatePrompts()
protected
_updatePrompts(promptsDict
):void
Parameters
• promptsDict
Returns
void
Overrides
Source
packages/llamaindex/src/synthesizers/ResponseSynthesizer.ts:52
getPrompts()
getPrompts():
PromptsDict
Returns all prompts from the mixin and its modules
Returns
PromptsDict
Inherited from
Source
packages/llamaindex/src/prompts/Mixin.ts:27
synthesize()
synthesize(params)
synthesize(
params
):Promise
<AsyncIterable
<EngineResponse
>>