Skip to content
Judgment Labs
Esc
↑↓navigate↵open⌘Jpreview
On this page

ScorerData

The result from a single scorer for one example.

Each ScoringResult contains a list of ScorerData – one per scorer that was run. Inspect value for the scorer’s output.

Attributes

PropType
name?str

Scorer name (e.g. "faithfulness").

Typestr
value?Optional[Union[str, float]]

The scorer result. Binary scorers use "Yes" or "No"; categorical scorers use their selected category.

TypeOptional[Union[str, float]]
DefaultNone
score_type?Optional[str]

Result type returned by the scorer.

TypeOptional[str]
DefaultNone
minimum_score_range?float

Lower bound of the scoring scale.

Typefloat
Default0
maximum_score_range?float

Upper bound of the scoring scale.

Typefloat
Default1
evaluation_model?Optional[str]

The LLM used to produce the score.

TypeOptional[str]
DefaultNone
error?Optional[str]

Error message if scoring failed.

TypeOptional[str]
DefaultNone
additional_metadata?Dict[str, Any]

Extra metadata from the scorer.

TypeDict[str, Any]
Defaultfield(default_factory=dict)
id?Optional[str]

Unique identifier for this result.

TypeOptional[str]
DefaultNone
success?Optional[bool]

Outcome of a client-side pass condition for the row this scorer result belongs to. None when no pass condition was evaluated.

TypeOptional[bool]
DefaultNone

to_dict()

Serialize to a dictionary, omitting None fields.

def to_dict() -> Dict[str, Any]:

Returns

Dict[str, Any]

Was this page helpful?