ChoiceAnswer
org.llm4s.jev.ChoiceAnswer
final case class ChoiceAnswer(choice: String, probabilities: Map[String, Double], confidence: Double) extends JevAnswer
The answer to a JevQuestion.Choice.
Value parameters
- choice
-
the highest-probability option
- confidence
-
how certain the model is, from 0 to 1, derived from the distribution (not the same thing as the probability of the choice)
- probabilities
-
every option with its probability; the API says they sum to 1, which is not re-checked here because the values are rounded on the wire
Attributes
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalstrait JevAnswerclass Objecttrait Matchableclass Any
Members list
In this article