Class: SimpleResponseBuilder
A response builder that just concatenates responses.
Implements
Constructors
constructor
• new SimpleResponseBuilder(serviceContext
): SimpleResponseBuilder
Parameters
Name | Type |
---|---|
serviceContext | ServiceContext |
Returns
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
Name | Type |
---|---|
params | ResponseBuilderParamsStreaming |
Returns
Promise
<AsyncIterable
<string
>>
Implementation of
Defined in
packages/core/src/synthesizers/builders.ts:43
▸ getResponse(params
): Promise
<string
>
Parameters
Name | Type |
---|---|
params | ResponseBuilderParamsNonStreaming |
Returns
Promise
<string
>