Skip to content

FaithfulnessEvaluator

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Faithfulness.ts:20

  • PromptMixin
  • BaseEvaluator

new FaithfulnessEvaluator(params?): FaithfulnessEvaluator

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Faithfulness.ts:28

boolean

FaithfulnessTextQAPrompt

FaithfulnessRefinePrompt

FaithfulnessEvaluator

PromptMixin.constructor

protected _getPromptModules(): ModuleRecord

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

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.

ModuleRecord

PromptMixin._getPromptModules


protected _getPrompts(): object

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

object

PromptMixin._getPrompts


protected _updatePrompts(promptsDict): void

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Faithfulness.ts:54

FaithfulnessTextQAPrompt

FaithfulnessRefinePrompt

void

PromptMixin._updatePrompts


evaluate(__namedParameters): Promise<EvaluationResult>

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Faithfulness.ts:74

EvaluatorParams

Promise<EvaluationResult>

BaseEvaluator.evaluate


evaluateResponse(__namedParameters): Promise<EvaluationResult>

Defined in: .build/typescript/packages/llamaindex/src/evaluation/Faithfulness.ts:132

EvaluatorResponseParams

Promise<EvaluationResult>

BaseEvaluator.evaluateResponse