GenerateAnswerResponseAnswerableProbability Property

Output only. The model's estimate of the probability that its answer is correct and grounded in the input passages. A low answerableProbability indicates that the answer might not be grounded in the sources. When answerableProbability is low, you may want to: - Display a message to the effect of "We couldn’t answer that question" to the user. - Fall back to a general-purpose LLM that answers the question from world knowledge. The threshold and nature of such fallbacks will depend on individual use cases. 0.5 is a good starting threshold.

Definition

Namespace: GenerativeAI.Types
Assembly: GenerativeAI (in GenerativeAI.dll) Version: 2.0.2+aa51399cad6d90cc71158d589a6268608b3c1893
C#
public double? AnswerableProbability { get; set; }

Property Value

NullableDouble

See Also