mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-23 08:13:49 +00:00
Fixed the retrieval context validation keeping unhelpful passages (#1217)
This commit is contained in:
1 parent
808b95b15d
commit
78f5066bfd
10 files changed
+454
-36
No files matched your search
+14
@@ -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);
|
||||
Reference in new issue
Block a user