Class: CorrectnessEvaluator
Correctness Evaluator
Hierarchy
-
↳
CorrectnessEvaluator
Implements
BaseEvaluator
Constructors
constructor
• new CorrectnessEvaluator(params?
): CorrectnessEvaluator
Parameters
Name | Type |
---|---|
params? | CorrectnessParams |
Returns
Overrides
Defined in
packages/core/src/evaluation/Correctness.ts:34
Properties
correctnessPrompt
• Private
correctnessPrompt: () => string
= defaultCorrectnessSystemPrompt
Type declaration
▸ (): string
Returns
string
Defined in
packages/core/src/evaluation/Correctness.ts:31
llm
• Private
llm: LLM
Defined in
packages/core/src/evaluation/Correctness.ts:29
parserFunction
• Private
parserFunction: (str
: string
) => [number
, string
]
Type declaration
▸ (str
): [number
, string
]
Parameters
Name | Type |
---|---|
str | string |
Returns
[number
, string
]
Defined in
packages/core/src/evaluation/Correctness.ts:28