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.
Extends
Implements
Constructors
new TreeSummarize()
new TreeSummarize(
serviceContext
?,summaryTemplate
?):TreeSummarize
Parameters
• serviceContext?: ServiceContext
• summaryTemplate?
Returns
Overrides
Source
packages/core/src/synthesizers/builders.ts:286
Properties
llm
llm:
LLM
<object
,object
>
Source
packages/core/src/synthesizers/builders.ts:282
promptHelper
promptHelper:
PromptHelper
Source
packages/core/src/synthesizers/builders.ts:283
summaryTemplate()
summaryTemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Source
packages/core/src/synthesizers/builders.ts:284
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
summaryTemplate()
summaryTemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Overrides
Source
packages/core/src/synthesizers/builders.ts:297
_updatePrompts()
protected
_updatePrompts(prompts
):void
Parameters
• prompts
• prompts.summaryTemplate
Returns
void