Numeric score on a scale
Returns the expected value on a numeric scale defined by range (default
[0, 1]), divided into buckets evenly spaced levels (default 11). The
levels object shows the probability mass at each level.
There is no single probability field for scores; instead, the full
distribution is in levels. buckets must be at least 2.
If the question text does not already name both range endpoints, the server appends "Answer on a numeric scale from {lo} to {hi}." so the model sees the scale.
Body Parameters
The question to decide.
When true (default), the model may abstain if it lacks confidence.
When false, abstention is replaced by the best-effort answer.
Number of evenly spaced levels on the scale.
Optional domain hint for specialized few-shot behavior (e.g., finance).
Inclusive [low, high] of the numeric scale.
Text context for the decision. May be empty when images or documents carry the context.
Whether to allow a reasoning trace before deciding. Only honored in fast
mode; ignored for deep. Set to false for lowest latency.
Returns
Numeric score on a scale
curl https://api.articul8.ai/bivia/score \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $A8_API_KEY" \
-d '{
"question": "How urgent is this (0=none, 1=critical)?"
}'
{
"evidence": {
"spans": [
{
"end": 0,
"start": 0,
"text": "text"
}
]
},
"latency_ms": 0,
"mode": "fast",
"model": "dec-1",
"status": "answered",
"thought": true,
"type": "score",
"value": {},
"verification": {
"performed": true,
"result": "passed"
},
"abstain_reason": "low_confidence",
"billable_tokens": 0,
"document_notes": [
{
"document": "document",
"status": "included",
"chars": 0,
"reason": "reason",
"tokens": 0,
"truncated": true
}
],
"document_tokens": 0,
"grounded": true,
"image_tokens": 0,
"input_tokens": 0,
"levels": {
"foo": 0
},
"think_allowed": true
}Returns Examples
{
"evidence": {
"spans": [
{
"end": 0,
"start": 0,
"text": "text"
}
]
},
"latency_ms": 0,
"mode": "fast",
"model": "dec-1",
"status": "answered",
"thought": true,
"type": "score",
"value": {},
"verification": {
"performed": true,
"result": "passed"
},
"abstain_reason": "low_confidence",
"billable_tokens": 0,
"document_notes": [
{
"document": "document",
"status": "included",
"chars": 0,
"reason": "reason",
"tokens": 0,
"truncated": true
}
],
"document_tokens": 0,
"grounded": true,
"image_tokens": 0,
"input_tokens": 0,
"levels": {
"foo": 0
},
"think_allowed": true
}