RelevanceTruthAndCompletenessEvaluator Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An IEvaluator that evaluates the 'Relevance', 'Truth' and 'Completeness' of a response produced by an AI model.
public ref class RelevanceTruthAndCompletenessEvaluator sealed : Microsoft::Extensions::AI::Evaluation::Quality::ChatConversationEvaluator
public sealed class RelevanceTruthAndCompletenessEvaluator : Microsoft.Extensions.AI.Evaluation.Quality.ChatConversationEvaluator
type RelevanceTruthAndCompletenessEvaluator = class
inherit ChatConversationEvaluator
Public NotInheritable Class RelevanceTruthAndCompletenessEvaluator
Inherits ChatConversationEvaluator
- Inheritance
Remarks
RelevanceTruthAndCompletenessEvaluator returns three NumericMetrics that contain scores for 'Relevance', 'Truth' and 'Completeness' respectively. Each score is a number between 1 and 5, with 1 indicating a poor score, and 5 indicating an excellent score.
Constructors
RelevanceTruthAndCompletenessEvaluator(RelevanceTruthAndCompletenessEvaluatorOptions) |
An IEvaluator that evaluates the 'Relevance', 'Truth' and 'Completeness' of a response produced by an AI model. |
Properties
ChatOptions |
Gets the ChatOptions that this IEvaluator uses when performing evaluations. (Inherited from ChatConversationEvaluator) |
CompletenessMetricName |
Gets the Name of the NumericMetric returned by RelevanceTruthAndCompletenessEvaluator for 'Completeness'. |
EvaluationMetricNames |
Gets the Names of the EvaluationMetrics produced by this IEvaluator. |
IgnoresHistory |
Gets a value indicating whether this IEvaluator considers the entire conversation history (in addition to the request and response being evaluated) as part of the evaluation it performs. (Inherited from ChatConversationEvaluator) |
RelevanceMetricName |
Gets the Name of the NumericMetric returned by RelevanceTruthAndCompletenessEvaluator for 'Relevance'. |
SystemPrompt |
Gets the system prompt that this IEvaluator uses when performing evaluations. (Inherited from ChatConversationEvaluator) |
TruthMetricName |
Gets the Name of the NumericMetric returned by RelevanceTruthAndCompletenessEvaluator for 'Truth'. |
Methods
CanRenderAsync(ChatMessage, Int32, ChatConfiguration, CancellationToken) |
Determines if there is sufficient |
EvaluateAsync(IEnumerable<ChatMessage>, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
InitializeResult() |
Returns an EvaluationResult that includes default values for all the EvaluationMetrics supported by this IEvaluator. (Inherited from ChatConversationEvaluator) |
ParseEvaluationResponseAsync(String, EvaluationResult, ChatConfiguration, CancellationToken) |
Parses the evaluation result present in |
RenderAsync(ChatMessage, CancellationToken) |
Renders the supplied |
RenderEvaluationPromptAsync(ChatMessage, ChatMessage, IEnumerable<ChatMessage>, IEnumerable<EvaluationContext>, CancellationToken) |
Renders the information present in the supplied parameters into a prompt that this IEvaluator uses to perform the evaluation. (Inherited from ChatConversationEvaluator) |
Extension Methods
EvaluateAsync(IEvaluator, ChatMessage, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(IEvaluator, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(IEvaluator, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
EvaluateAsync(IEvaluator, String, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |