Class: Refine
A response builder that uses the query to ask the LLM generate a better response using multiple text chunks.
Hierarchy
-
↳
Refine
Implements
Constructors
constructor
• new Refine(serviceContext
, textQATemplate?
, refineTemplate?
): Refine
Parameters
Name | Type |
---|---|
serviceContext | ServiceContext |
textQATemplate? | (__namedParameters : { context : undefined | string = ""; query : undefined | string = "" }) => string |
refineTemplate? | (__namedParameters : { context : undefined | string = ""; existingAnswer : undefined | string = ""; query : undefined | string = "" }) => string |
Returns
Overrides
Defined in
packages/core/src/synthesizers/builders.ts:83
Properties
llm
• llm: LLM
Defined in
packages/core/src/synthesizers/builders.ts:78
promptHelper
• promptHelper: PromptHelper
Defined in
packages/core/src/synthesizers/builders.ts:79
refineTemplate
• refineTemplate: (__namedParameters
: { context
: undefined
| string
= ""; existingAnswer
: undefined
| string
= ""; query
: undefined
| string
= "" }) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type | Default value |
---|---|---|
«destructured» | Object | undefined |
› context | undefined | string | "" |
› existingAnswer | undefined | string | "" |
› query | undefined | string | "" |