Skip to main content

Class: SimpleResponseBuilder

A response builder that just concatenates responses.

Implements

Constructors

new SimpleResponseBuilder()

new SimpleResponseBuilder(serviceContext?, textQATemplate?): SimpleResponseBuilder

Parameters

serviceContext?: ServiceContext

textQATemplate?

Returns

SimpleResponseBuilder

Defined in

packages/llamaindex/src/synthesizers/builders.ts:42

Properties

llm

llm: LLM<object, object>

Defined in

packages/llamaindex/src/synthesizers/builders.ts:39


textQATemplate()

textQATemplate: (__namedParameters) => string

Parameters

__namedParameters

__namedParameters.context: undefined | string = ""

__namedParameters.query: undefined | string = ""

Returns

string

Defined in

packages/llamaindex/src/synthesizers/builders.ts:40

Methods

getResponse()

getResponse(query, stream)

getResponse(query, stream): Promise<AsyncIterable<string>>

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

Parameters

query: ResponseBuilderQuery

stream: true

Returns

Promise<AsyncIterable<string>>

Implementation of

ResponseBuilder.getResponse

Defined in

packages/llamaindex/src/synthesizers/builders.ts:47

getResponse(query, stream)

getResponse(query, stream?): Promise<string>

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

Parameters

query: ResponseBuilderQuery

stream?: false

Returns

Promise<string>

Implementation of

ResponseBuilder.getResponse

Defined in

packages/llamaindex/src/synthesizers/builders.ts:51