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.
Hierarchy
-
↳
TreeSummarize
Implements
Constructors
constructor
• new TreeSummarize(serviceContext?
, summaryTemplate?
): TreeSummarize
Parameters
Name | Type |
---|---|
serviceContext? | ServiceContext |
summaryTemplate? | (__namedParameters : { context : undefined | string = ""; query : undefined | string = "" }) => string |
Returns
Overrides
Defined in
packages/core/src/synthesizers/builders.ts:293
Properties
llm
• llm: LLM
<Record
<string
, unknown
>, Record
<string
, unknown
>>
Defined in
packages/core/src/synthesizers/builders.ts:289
promptHelper
• promptHelper: PromptHelper
Defined in
packages/core/src/synthesizers/builders.ts:290
summaryTemplate
• summaryTemplate: (__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 | "" |