Class: CorrectnessEvaluator
Correctness Evaluator
Extends
Implements
BaseEvaluator
Constructors
new CorrectnessEvaluator()
new CorrectnessEvaluator(
params
?):CorrectnessEvaluator
Parameters
• params?: CorrectnessParams
Returns
Overrides
Source
packages/core/src/evaluation/Correctness.ts:35
Properties
correctnessPrompt()
private
correctnessPrompt: () =>string
=defaultCorrectnessSystemPrompt
Returns
string
Source
packages/core/src/evaluation/Correctness.ts:32
llm
private
llm:LLM
<object
,object
>
Source
packages/core/src/evaluation/Correctness.ts:30
parserFunction()
private
parserFunction: (str
) => [number
,string
]
Parameters
• str: string
Returns
[number
, string
]
Source
packages/core/src/evaluation/Correctness.ts:29
scoreThreshold
private
scoreThreshold:number
Source
packages/core/src/evaluation/Correctness.ts:28
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():PromptsDict
Returns
PromptsDict
Inherited from
Source
packages/core/src/prompts/Mixin.ts:78
_updatePrompts()
_updatePrompts(
prompts
):void
Parameters
• prompts
• prompts.correctnessPrompt
Returns
void
Overrides
Source
packages/core/src/evaluation/Correctness.ts:44