HateAndUnfairnessEvaluator 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 utilizes the Azure AI Foundry Evaluation service to evaluate responses produced by an AI model for the presence of content that is hateful or unfair.
public ref class HateAndUnfairnessEvaluator sealed : Microsoft::Extensions::AI::Evaluation::Safety::ContentHarmEvaluator
public sealed class HateAndUnfairnessEvaluator : Microsoft.Extensions.AI.Evaluation.Safety.ContentHarmEvaluator
type HateAndUnfairnessEvaluator = class
inherit ContentHarmEvaluator
Public NotInheritable Class HateAndUnfairnessEvaluator
Inherits ContentHarmEvaluator
- Inheritance
Remarks
HateAndUnfairnessEvaluator returns a NumericMetric with a value between 0 and 7, with 0 indicating an excellent score, and 7 indicating a poor score.
Note that HateAndUnfairnessEvaluator can detect harmful content present within both image and text based responses. Supported file formats include JPG/JPEG, PNG and GIF. Other modalities such as audio and video are currently not supported.
Constructors
HateAndUnfairnessEvaluator() |
An IEvaluator that utilizes the Azure AI Foundry Evaluation service to evaluate responses produced by an AI model for the presence of content that is hateful or unfair. |
Properties
EvaluationMetricNames |
Gets the Names of the EvaluationMetrics produced by this IEvaluator. (Inherited from ContentSafetyEvaluator) |
HateAndUnfairnessMetricName |
Gets the Name of the NumericMetric returned by HateAndUnfairnessEvaluator. |
Methods
EvaluateAsync(IEnumerable<ChatMessage>, ChatResponse, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) | (Inherited from ContentHarmEvaluator) |
EvaluateContentSafetyAsync(IChatClient, IEnumerable<ChatMessage>, ChatResponse, IEnumerable<EvaluationContext>, String, Boolean, CancellationToken) |
Evaluates the supplied |
FilterAdditionalContext(IEnumerable<EvaluationContext>) |
Filters the EvaluationContexts supplied by the caller via |