Skip to main content
A choice question picks one option from 2 to 64 alternatives that have no natural order: departments, intents, tools, categories.

Complete example

Response:
The body always has a context and a questions map keyed by ids you choose (department here); the answer comes back under the same id. A request can mix choice questions with noul and score questions, up to 16.

Question fields

A choice question is one entry of questions:

Reading the answer

  • choice is the selected option id, or null when the model abstains.
  • confidence is the margin between the two most likely options, not the probability of choice. See Confidence and probabilities.
  • probabilities has one calibrated probability per option, in request order.
  • abstention_status is calibrated for intent questions with label-only options and advisory otherwise.
Choice behaves exactly as it did before the other primitives existed: existing requests need no change.