メインコンテンツまでスキップ

Class: SimpleResponseBuilder

A response builder that just concatenates responses.

Implements

Constructors

constructor

new SimpleResponseBuilder(serviceContext)

Parameters

NameType
serviceContextServiceContext

Defined in

packages/core/src/synthesizers/builders.ts:38

Properties

llm

llm: LLM

Defined in

packages/core/src/synthesizers/builders.ts:35


textQATemplate

textQATemplate: SimplePrompt

Defined in

packages/core/src/synthesizers/builders.ts:36

Methods

getResponse

getResponse(params): Promise<AsyncIterable<string>>

Get the response from a query and a list of text chunks.

Parameters

NameType
paramsResponseBuilderParamsStreaming

Returns

Promise<AsyncIterable<string>>

Implementation of

ResponseBuilder.getResponse

Defined in

packages/core/src/synthesizers/builders.ts:43

getResponse(params): Promise<string>

Parameters

NameType
paramsResponseBuilderParamsNonStreaming

Returns

Promise<string>

Implementation of

ResponseBuilder.getResponse

Defined in

packages/core/src/synthesizers/builders.ts:46