Skip to main content

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)

Parameters

NameType
serviceContextServiceContext

Defined in

ResponseSynthesizer.ts:212

Properties

serviceContext

serviceContext: ServiceContext

Defined in

ResponseSynthesizer.ts:210

Methods

getResponse

getResponse(query, textChunks, parentEvent?): Promise<string>

Parameters

NameType
querystring
textChunksstring[]
parentEvent?Event

Returns

Promise<string>

Implementation of

BaseResponseBuilder.getResponse

Defined in

ResponseSynthesizer.ts:216