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

NumericResponse

Response for numeric scorers (e.g. 0.0 to 1.0).

return NumericResponse(
    value=0.85,
    reason="Output covers most of the expected content.",
)

Attributes

PropType
value?float

The numeric score.

Typefloat
reason?str
Typestr
citations?Optional[List[Citation]]
TypeOptional[List[Citation]]
DefaultNone

Was this page helpful?