Fixed the retrieval context validation keeping unhelpful passages (#1217)

This commit is contained in:
Thorsten Sommer authored and GitHub committed 2026-11-21 20:50:25 +01:00
1 parent 808b95b15d
commit 78f5066bfd
10 files changed
+454 -36

No files matched your search

@@ -0,0 +1,14 @@
namespace AIStudio.AIOperations.RetrievalContextValidation;
/// <summary>
/// What a model writes when it judges whether a retrieval context helps with a prompt.
/// </summary>
/// <remarks>
/// Every value may be missing from the answer, and a missing value stays null instead of turning into the
/// default of its type. An answer without a decision or a confidence is no usable answer, see
/// RetrievalContextValidationOperation.ReadAnswer.
/// </remarks>
/// <param name="Decision">Whether the retrieval context helps with the prompt.</param>
/// <param name="Reason">Why the model decided so.</param>
/// <param name="Confidence">The probability that the decision is right, between 0 and 1.</param>
public readonly record struct RetrievalContextValidationAnswer(bool? Decision, string? Reason, float? Confidence);