Jaa


RelevanceTruthAndCompletenessEvaluator Class

Definition

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
RelevanceTruthAndCompletenessEvaluator

Constructors

RelevanceTruthAndCompletenessEvaluator(RelevanceTruthAndCompletenessEvaluator+Options)

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

The Name of the NumericMetric returned by RelevanceTruthAndCompletenessEvaluator for 'Completeness'.

EvaluationMetricNames

Identifies the Names of the EvaluationMetrics produced by this IEvaluator.

IgnoresHistory

Gets a value that indicates 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

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

The Name of the NumericMetric returned by RelevanceTruthAndCompletenessEvaluator for 'Truth'.

Methods

CanRenderAsync(ChatMessage, Int32, ChatConfiguration, CancellationToken)

Determines if there is sufficient tokenBudget remaining to render the supplied message as part of the evaluation prompt that this IEvaluator uses.

(Inherited from ChatConversationEvaluator)
Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
EvaluateAsync(IEnumerable<ChatMessage>, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

(Inherited from ChatConversationEvaluator)
GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetType()

Gets the Type of the current instance.

(Inherited from Object)
InitializeResult()

Returns an EvaluationResult that includes default values for all the EvaluationMetrics supported by this IEvaluator.

(Inherited from ChatConversationEvaluator)
MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
ParseEvaluationResponseAsync(String, EvaluationResult, ChatConfiguration, CancellationToken)

Parses the evaluation result present in modelResponseForEvaluationPrompt into the EvaluationMetrics present in the supplied result.

(Inherited from ChatConversationEvaluator)
RenderAsync(ChatMessage, CancellationToken)

Renders the supplied message to a string that can be included as part of the evaluation prompt that this IEvaluator uses.

(Inherited from ChatConversationEvaluator)
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)
ToString()

Returns a string that represents the current object.

(Inherited from Object)

Extension Methods

EvaluateAsync(IEvaluator, ChatMessage, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

EvaluateAsync(IEvaluator, ChatMessage, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

EvaluateAsync(IEvaluator, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

EvaluateAsync(IEvaluator, String, String, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken)

Evaluates the supplied modelResponse and returns an EvaluationResult containing one or more EvaluationMetrics.

Applies to