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
<object
, object
>
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 |