Skip to main content

Module: evaluation

Classes

Interfaces

Type Aliases

EvaluationResult

Ƭ EvaluationResult: Object

Represents the result of an evaluation.

Type declaration

NameTypeDescription
keystringThe key associated with the evaluation result.
comment?stringA comment associated with the evaluation result.
correction?Record<string, unknown>A correction record associated with the evaluation result.
evaluatorInfo?Record<string, unknown>Information about the evaluator.
feedbackConfig?FeedbackConfigThe feedback config associated with the evaluation result. If set, this will be used to define how a feedback key should be interpreted.
score?ScoreTypeThe score of the evaluation result.
sourceRunId?stringThe source run ID of the evaluation result. If set, a link to the source run will be available in the UI.
targetRunId?stringThe target run ID of the evaluation result. If this is not set, the target run ID is assumed to be the root of the trace.
value?ValueTypeThe value of the evaluation result.

Defined in

evaluation/evaluator.ts:29

Functions

evaluate

evaluate(target, options): Promise<ExperimentResults>

Parameters

NameTypeDescription
targetTargetTThe target system or function to evaluate.
optionsEvaluateOptions-

Returns

Promise<ExperimentResults>

Defined in

evaluation/_runner.ts:109


Was this page helpful?