Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootSimilarityTakedownResult

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/aiplatform_v1beta1/classes.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb,
lib/google/apis/aiplatform_v1beta1/representations.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ LearningGenaiRootSimilarityTakedownResult

Returns a new instance of LearningGenaiRootSimilarityTakedownResult.



36495
36496
36497
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36495

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#allowedBoolean Also known as: allowed?

False when query or response should be taken down by any of the takedown rules, true otherwise. Corresponds to the JSON property allowed

Returns:

  • (Boolean)


36487
36488
36489
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36487

def allowed
  @allowed
end

#scored_phrasesArray<Google::Apis::AiplatformV1beta1::LearningGenaiRootScoredSimilarityTakedownPhrase>

List of similar phrases with score. Set only if allowed=false. Corresponds to the JSON property scoredPhrases



36493
36494
36495
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36493

def scored_phrases
  @scored_phrases
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



36500
36501
36502
36503
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 36500

def update!(**args)
  @allowed = args[:allowed] if args.key?(:allowed)
  @scored_phrases = args[:scored_phrases] if args.key?(:scored_phrases)
end