Thanks to visit codestin.com
Credit goes to developers.llamaindex.ai

Skip to content

CorrectnessEvaluator

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Correctness.ts:25

Correctness Evaluator

  • PromptMixin
  • BaseEvaluator

new CorrectnessEvaluator(params?): CorrectnessEvaluator

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Correctness.ts:33

CorrectnessParams

CorrectnessEvaluator

PromptMixin.constructor

protected _getPrompts(): object

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Correctness.ts:42

object

correctnessPrompt: CorrectnessSystemPrompt

PromptMixin._getPrompts


protected _getPromptModules(): object

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Correctness.ts:47

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.

object

PromptMixin._getPromptModules


protected _updatePrompts(prompts): void

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Correctness.ts:51

CorrectnessSystemPrompt

void

PromptMixin._updatePrompts


evaluate(__namedParameters): Promise<EvaluationResult>

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Correctness.ts:66

EvaluatorParams

Promise<EvaluationResult>

BaseEvaluator.evaluate


evaluateResponse(__namedParameters): Promise<EvaluationResult>

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Correctness.ts:112

EvaluatorResponseParams

Promise<EvaluationResult>

BaseEvaluator.evaluateResponse