SingleNumericMetricEvaluator 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 abstract
base class that can be used to implement an AI-based IEvaluator that
produces an EvaluationResult containing a single NumericMetric.
public ref class SingleNumericMetricEvaluator abstract : Microsoft::Extensions::AI::Evaluation::Quality::ChatConversationEvaluator
public abstract class SingleNumericMetricEvaluator : Microsoft.Extensions.AI.Evaluation.Quality.ChatConversationEvaluator
type SingleNumericMetricEvaluator = class
inherit ChatConversationEvaluator
Public MustInherit Class SingleNumericMetricEvaluator
Inherits ChatConversationEvaluator
- Inheritance
- Derived
Constructors
SingleNumericMetricEvaluator() |
Properties
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) |
MetricName |
Gets the Name of the NumericMetric produced by this IEvaluator. |
SystemPrompt |
Gets the system prompt that this IEvaluator uses when performing evaluations. |
Methods
CanRenderAsync(ChatMessage, Int32, ChatConfiguration, CancellationToken) |
Determines if there is sufficient |
EvaluateAsync(IEnumerable<ChatMessage>, ChatResponse, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
Evaluates the supplied |
InitializeResult() |
Returns an EvaluationResult that includes default values for all the EvaluationMetrics supported by this IEvaluator. |
PerformEvaluationAsync(ChatConfiguration, IList<ChatMessage>, EvaluationResult, CancellationToken) |
Invokes the supplied ChatClient with the supplied
|
RenderAsync(ChatMessage, CancellationToken) |
Renders the supplied |
RenderAsync(ChatResponse, CancellationToken) |
Renders the supplied |
RenderEvaluationPromptAsync(ChatMessage, ChatResponse, 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) |