Class: SimpleResponseBuilder
A response builder that just concatenates responses.
Implements
Constructors
new SimpleResponseBuilder()
new SimpleResponseBuilder(
serviceContext
?,textQATemplate
?):SimpleResponseBuilder
Parameters
• serviceContext?: ServiceContext
• textQATemplate?
Returns
Source
packages/llamaindex/src/synthesizers/builders.ts:45
Properties
llm
llm:
LLM
<object
,object
>
Source
packages/llamaindex/src/synthesizers/builders.ts:42
textQATemplate()
textQATemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Source
packages/llamaindex/src/synthesizers/builders.ts:43
Methods
getResponse()
getResponse(params)
getResponse(
params
):Promise
<AsyncIterable
<string
>>
Get the response from a query and a list of text chunks.
Parameters
• params: ResponseBuilderParamsStreaming
Returns
Promise
<AsyncIterable
<string
>>
Implementation of
Source
packages/llamaindex/src/synthesizers/builders.ts:50
getResponse(params)
getResponse(
params
):Promise
<string
>
Parameters
• params: ResponseBuilderParamsNonStreaming
Returns
Promise
<string
>