public sealed class EvaluationResult.Types.SemanticSimilarityResult : IMessage<EvaluationResult.Types.SemanticSimilarityResult>, IEquatable<EvaluationResult.Types.SemanticSimilarityResult>, IDeepCloneable<EvaluationResult.Types.SemanticSimilarityResult>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class EvaluationResult.Types.SemanticSimilarityResult.
The result of the semantic similarity check.
Implements
IMessageEvaluationResultTypesSemanticSimilarityResult, IEquatableEvaluationResultTypesSemanticSimilarityResult, IDeepCloneableEvaluationResultTypesSemanticSimilarityResult, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Constructors
SemanticSimilarityResult()
public SemanticSimilarityResult()SemanticSimilarityResult(SemanticSimilarityResult)
public SemanticSimilarityResult(EvaluationResult.Types.SemanticSimilarityResult other)| Parameter | |
|---|---|
| Name | Description |
other |
EvaluationResultTypesSemanticSimilarityResult |
Properties
Explanation
public string Explanation { get; set; }Output only. The explanation for the semantic similarity score.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasScore
public bool HasScore { get; }Gets whether the "score" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Label
public string Label { get; set; }Output only. The label associated with each score. Score 4: Fully Consistent Score 3: Mostly Consistent Score 2: Partially Consistent (Minor Omissions) Score 1: Largely Inconsistent (Major Omissions) Score 0: Completely Inconsistent / Contradictory
| Property Value | |
|---|---|
| Type | Description |
string |
|
Outcome
public EvaluationResult.Types.Outcome Outcome { get; set; }Output only. The outcome of the semantic similarity check. This is determined by comparing the score to the semantic_similarity_success_threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.
| Property Value | |
|---|---|
| Type | Description |
EvaluationResultTypesOutcome |
|
Score
public int Score { get; set; }Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.
| Property Value | |
|---|---|
| Type | Description |
int |
|