Class: FaithfulnessEvaluator
Hierarchy
-
↳
FaithfulnessEvaluator
Implements
BaseEvaluator
Constructors
constructor
• new FaithfulnessEvaluator(params
): FaithfulnessEvaluator
Parameters
Name | Type |
---|---|
params | Object |
params.faithFulnessRefinePrompt? | (__namedParameters : { context : string ; existingAnswer : string ; query : string }) => string |
params.faithfulnessSystemPrompt? | (__namedParameters : { context : string ; query : string }) => string |
params.raiseError? | boolean |
params.serviceContext? | ServiceContext |
Returns
Overrides
Defined in
packages/core/src/evaluation/Faithfulness.ts:30
Properties
evalTemplate
• Private
evalTemplate: (__namedParameters
: { context
: string
; query
: string
}) => string
Type declaration
▸ («destructured»
): string
Parameters
Name | Type |
---|---|
«destructured» | Object |
› context | string |
› query | string |
Returns
string
Defined in
packages/core/src/evaluation/Faithfulness.ts:27