ChoiceAnswer: {
    choice: string;
    confidence: number;
    probabilities: { [k: string]: number };
    type: "choice";
}

Calibrated result for a ChoiceQuestion.

Type declaration

  • choice: string

    Required. Output only. The option ID with the highest probability.

  • confidence: number

    Required. Output only. Closed-world confidence score in [0, 1], equal to the calibrated

    probability of the winning outcome:

    • NoulAnswer: max(noul, 1 - noul)
    • ChoiceAnswer: p_max (the probability of choice)
    • ScoreAnswer: p_max (the highest probability in probabilities).
  • probabilities: { [k: string]: number }

    Required. Output only. Closed-world normalized probability in [0, 1] for each option ID.

  • type: "choice"