Class: CorrectnessEvaluator
Correctness Evaluator
Extends
Implements
BaseEvaluator
Constructors
new CorrectnessEvaluator()
new CorrectnessEvaluator(
params
?):CorrectnessEvaluator
Parameters
• params?: CorrectnessParams
Returns
Overrides
Source
packages/llamaindex/src/evaluation/Correctness.ts:35
Properties
correctnessPrompt()
private
correctnessPrompt: () =>string
=defaultCorrectnessSystemPrompt
Returns
string
Source
packages/llamaindex/src/evaluation/Correctness.ts:32
llm
private
llm:LLM
<object
,object
>
Source
packages/llamaindex/src/evaluation/Correctness.ts:30
parserFunction()
private
parserFunction: (str
) => [number
,string
]
Parameters
• str: string
Returns
[number
, string
]
Source
packages/llamaindex/src/evaluation/Correctness.ts:29
scoreThreshold
private
scoreThreshold:number
Source
packages/llamaindex/src/evaluation/Correctness.ts:28
Methods
_getPromptModules()
protected
_getPromptModules():Record
<string
,any
>
Returns
Record
<string
, any
>
Inherited from
PromptMixin
. _getPromptModules