Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::EvaluationResult::SemanticSimilarityResult.
The result of the semantic similarity check.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#explanation
def explanation() -> ::String
Returns
- (::String) — Output only. The explanation for the semantic similarity score.
#label
def label() -> ::String
Returns
- (::String) — 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
#outcome
def outcome() -> ::Google::Cloud::Ces::V1beta::EvaluationResult::Outcome
Returns
- (::Google::Cloud::Ces::V1beta::EvaluationResult::Outcome) — 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.
#score
def score() -> ::Integer
Returns
- (::Integer) — Output only. The semantic similarity score. Can be 0, 1, 2, 3, or 4.