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:45
Properties
llm
• llm: LLM
<Record
<string
, unknown
>>
Defined in
packages/core/src/synthesizers/builders.ts:42
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:43
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:50
▸ getResponse(params
): Promise
<string
>
Parameters
Name | Type |
---|---|
params | ResponseBuilderParamsNonStreaming |
Returns
Promise
<string
>