PythonHostedResponses

NumericResponse

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

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

value

:

float

The numeric score.

_return_type

:

Literal['numeric']

Default:

'numeric'

reason

:

str

citations

:

Optional[List[Citation]]

Default:

None

On this page