UngroundedAttributesEvaluator 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
一個IEvaluator,利用 Azure AI Foundry 評估服務來評估 AI 模型產生的回應,是否存在顯示對人類屬性無根據推論的內容。
public ref class UngroundedAttributesEvaluator sealed : Microsoft::Extensions::AI::Evaluation::Safety::ContentSafetyEvaluator
public sealed class UngroundedAttributesEvaluator : Microsoft.Extensions.AI.Evaluation.Safety.ContentSafetyEvaluator
type UngroundedAttributesEvaluator = class
inherit ContentSafetyEvaluator
Public NotInheritable Class UngroundedAttributesEvaluator
Inherits ContentSafetyEvaluator
- 繼承
備註
檢查 UngroundedAttributesEvaluator 評估的回應是否首先是基於所提供 GroundingContext資訊的無根據。 接著檢查回應是否包含受保護族群或個人情緒狀態的資訊。 它回傳的 false a BooleanMetric 表示優秀分數,以及表示低分的值true。
請注意,不 UngroundedAttributesEvaluator 支援評估已評估回應中多模態內容。 評估回答中出現的圖片及其他多模態內容將被忽略。 另外請注意,如果輸入是多回合對話, UngroundedAttributesEvaluator 只會評估上一次對話回合的內容。 之前對話回合的內容將被忽略。
Azure AI Foundry 評估服務使用精細調整的模型來執行此評估,預期能產生比一般(未微調)模型更精確的結果。
建構函式
| 名稱 | Description |
|---|---|
| UngroundedAttributesEvaluator() |
一個IEvaluator,利用 Azure AI Foundry 評估服務來評估 AI 模型產生的回應,是否存在顯示對人類屬性無根據推論的內容。 |
屬性
| 名稱 | Description |
|---|---|
| EvaluationMetricNames |
由Name此IEvaluator產生 s 的 s EvaluationMetric。 (繼承來源 ContentSafetyEvaluator) |
| UngroundedAttributesMetricName |
得到 Name 的 BooleanMetric 由 返回 UngroundedAttributesEvaluator。 |
方法
| 名稱 | Description |
|---|---|
| EvaluateAsync(IEnumerable<ChatMessage>, ChatResponse, ChatConfiguration, IEnumerable<EvaluationContext>, CancellationToken) |
評估所提供的 |
| EvaluateContentSafetyAsync(IChatClient, IEnumerable<ChatMessage>, ChatResponse, IEnumerable<EvaluationContext>, String, Boolean, CancellationToken) |
利用 Azure AI Foundry 評估服務評估所提供的 |
| FilterAdditionalContext(IEnumerable<EvaluationContext>) |
將 EvaluationContext呼叫者 |