Class: SimpleResponseBuilder
A response builder that just concatenates responses.
Implements
Constructors
constructor
• new SimpleResponseBuilder(serviceContext?
, textQATemplate?
): SimpleResponseBuilder
Parameters
Name | Type |
---|---|
serviceContext? | ServiceContext |
textQATemplate? | (__namedParameters : { context : undefined | string = ""; query : undefined | string = "" }) => string |
Returns
Defined in
packages/core/src/synthesizers/builders.ts:46
Properties
llm
• llm: LLM
<object
, object
>
Defined in
packages/core/src/synthesizers/builders.ts:43
textQATemplate
• textQATemplate: (__namedParameters
: { context
: undefined
| string
= ""; query
: undefined
| string
= "" }) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type | Default value |
---|---|---|
«destructured» | Object | undefined |
› context | undefined | string | "" |
› query | undefined | string | "" |
Returns
string
Defined in
packages/core/src/synthesizers/builders.ts:44
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:51
▸ getResponse(params
): Promise
<string
>
Parameters
Name | Type |
---|---|
params | ResponseBuilderParamsNonStreaming |