Choice

data class Choice(val option: String, val probabilities: Map<String, Double> = mapOf(option to 1.0), val confidence: Double = 1.0) : Answer

The model picked option.

Constructors

Link copied to clipboard
constructor(option: String, probabilities: Map<String, Double> = mapOf(option to 1.0), confidence: Double = 1.0)

Properties

Link copied to clipboard

how clearly option won, from 0 (every option is as likely) to 1. Send an answer with a low confidence to a person or to a larger model.

Link copied to clipboard
Link copied to clipboard

how likely the model finds each option. They add up to 1.

Functions

Link copied to clipboard
inline fun <reified Option : Enum<Option>> Answer.Choice.value(): Option

The constant of Option that this answer picked, after a choose with that enum.