Class: CorrectnessEvaluator
Correctness Evaluator
Extends
Implements
BaseEvaluator
Constructors
new CorrectnessEvaluator()
new CorrectnessEvaluator(
params
?):CorrectnessEvaluator
Parameters
• params?: CorrectnessParams
Returns
Overrides
Defined in
packages/llamaindex/src/evaluation/Correctness.ts:35
Methods
_getPromptModules()
protected
_getPromptModules():object
Return a dictionary of sub-modules within the current module that also implement PromptMixin (so that their prompts can also be get/set).
Can be blank if no sub-modules.
Returns
object
Overrides
Defined in
packages/llamaindex/src/evaluation/Correctness.ts:49
_getPrompts()
protected
_getPrompts():object
Returns
object
correctnessPrompt
correctnessPrompt:
CorrectnessSystemPrompt
Overrides
Defined in
packages/llamaindex/src/evaluation/Correctness.ts:44
_updatePrompts()
protected
_updatePrompts(prompts
):void
Parameters
• prompts
• prompts.correctnessPrompt: CorrectnessSystemPrompt
Returns
void
Overrides
Defined in
packages/llamaindex/src/evaluation/Correctness.ts:53
evaluate()
evaluate(
__namedParameters
):Promise
<EvaluationResult
>
Parameters
• __namedParameters: EvaluatorParams
Returns
Promise
<EvaluationResult
>
Implementation of
BaseEvaluator.evaluate
Defined in
packages/llamaindex/src/evaluation/Correctness.ts:68
evaluateResponse()
evaluateResponse(
__namedParameters
):Promise
<EvaluationResult
>
Parameters
• __namedParameters: EvaluatorResponseParams
Returns
Promise
<EvaluationResult
>
Implementation of
BaseEvaluator.evaluateResponse
Defined in
packages/llamaindex/src/evaluation/Correctness.ts:114
getPrompts()
getPrompts():
PromptsRecord
Returns
Inherited from
Defined in
packages/core/prompts/dist/index.d.ts:58
updatePrompts()
updatePrompts(
prompts
):void
Parameters
• prompts: PromptsRecord