Multi-select from a list
/set
Independent yes/no probability per option (not a distribution that sums to 1).
value contains every option whose probability is at least 0.5, in request
order. The probabilities map shows the independent P(applies) for each option.
Body Parameters
options: array of unknown
The options to select from (zero or more may be selected).
question: string
The question to decide.
allow_abstain: optional boolean
When true (default), the model may abstain if it lacks confidence.
When false, abstention is replaced by the best-effort answer.
domain: optional string
Optional domain hint for specialized few-shot behavior (e.g., finance).
state: optional string
Text context for the decision. May be empty when images or documents carry the context.
think: optional boolean
Whether to allow a reasoning trace before deciding. Only honored in fast
mode; ignored for deep. Set to false for lowest latency.
Returns
Multi-select from a list
curl https://api.articul8.ai/bivia/set \
-H 'Content-Type: application/json' \
-H "Authorization: Bearer $A8_API_KEY" \
-d '{
"options": [
"cancel",
"refund",
"status"
],
"question": "Which actions apply?"
}'
{
"evidence": {
"spans": [
{
"end": 0,
"start": 0,
"text": "text"
}
]
},
"latency_ms": 0,
"mode": "fast",
"model": "dec-1",
"status": "answered",
"thought": true,
"type": "set",
"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,
"probabilities": {
"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": "set",
"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,
"probabilities": {
"foo": 0
},
"think_allowed": true
}