Class: Refine
A response builder that uses the query to ask the LLM generate a better response using multiple text chunks.
Extends
Extended by
Implements
Constructors
new Refine()
new Refine(
serviceContext
?,textQATemplate
?,refineTemplate
?):Refine
Parameters
• serviceContext?: ServiceContext
• textQATemplate?
• refineTemplate?
Returns
Overrides
Source
packages/core/src/synthesizers/builders.ts:88
Properties
llm
llm:
LLM
<object
,object
>
Source
packages/core/src/synthesizers/builders.ts:83
promptHelper
promptHelper:
PromptHelper
Source
packages/core/src/synthesizers/builders.ts:84
refineTemplate()
refineTemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.existingAnswer: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Source
packages/core/src/synthesizers/builders.ts:86
textQATemplate()
textQATemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
Source
packages/core/src/synthesizers/builders.ts:85
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Returns
Record
<string
, any
>
Inherited from
PromptMixin
. _getPromptModules
Source
packages/core/src/prompts/Mixin.ts:82
_getPrompts()
protected
_getPrompts():object
Returns
object
refineTemplate()
refineTemplate: (
__namedParameters
) =>string
Parameters
• __namedParameters
• __namedParameters.context: undefined
| string
= ""
• __namedParameters.existingAnswer: undefined
| string
= ""
• __namedParameters.query: undefined
| string
= ""
Returns
string
textQATemplate()
textQATemplate: (
__namedParameters
) =>string