Class: TreeSummarize
TreeSummarize repacks the text chunks into the smallest possible number of chunks and then summarizes them, then recursively does so until there's one chunk left.
Implements
BaseResponseBuilder
Constructors
constructor
• new TreeSummarize(serviceContext
, summaryTemplate?
)
Parameters
Name | Type |
---|---|
serviceContext | ServiceContext |
summaryTemplate? | (__namedParameters : Object ) => string |
Defined in
packages/core/src/ResponseSynthesizer.ts:217
Properties
serviceContext
• serviceContext: ServiceContext
Defined in
packages/core/src/ResponseSynthesizer.ts:214
summaryTemplate
• summaryTemplate: (__namedParameters
: Object
) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type |
---|---|
«destructured» | Object |
Returns
string
Defined in
packages/core/src/ResponseSynthesizer.ts:215
Methods
getResponse
▸ getResponse(query
, textChunks
, parentEvent?
): Promise
<string
>
Parameters
Name | Type |
---|---|
query | string |
textChunks | string [] |
parentEvent? | Event |
Returns
Promise
<string
>
Implementation of
BaseResponseBuilder.getResponse