Class: Google::Apis::AiplatformV1::LearningGenaiRootSimilarityTakedownResult
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::LearningGenaiRootSimilarityTakedownResult
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/aiplatform_v1/classes.rb,
lib/google/apis/aiplatform_v1/representations.rb,
lib/google/apis/aiplatform_v1/representations.rb
Instance Attribute Summary collapse
-
#allowed ⇒ Boolean
(also: #allowed?)
False when query or response should be taken down by any of the takedown rules, true otherwise.
-
#scored_phrases ⇒ Array<Google::Apis::AiplatformV1::LearningGenaiRootScoredSimilarityTakedownPhrase>
List of similar phrases with score.
Instance Method Summary collapse
-
#initialize(**args) ⇒ LearningGenaiRootSimilarityTakedownResult
constructor
A new instance of LearningGenaiRootSimilarityTakedownResult.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ LearningGenaiRootSimilarityTakedownResult
Returns a new instance of LearningGenaiRootSimilarityTakedownResult.
31130 31131 31132 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31130 def initialize(**args) update!(**args) end |
Instance Attribute Details
#allowed ⇒ Boolean 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
31122 31123 31124 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31122 def allowed @allowed end |
#scored_phrases ⇒ Array<Google::Apis::AiplatformV1::LearningGenaiRootScoredSimilarityTakedownPhrase>
List of similar phrases with score. Set only if allowed=false.
Corresponds to the JSON property scoredPhrases
31128 31129 31130 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31128 def scored_phrases @scored_phrases end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
31135 31136 31137 31138 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 31135 def update!(**args) @allowed = args[:allowed] if args.key?(:allowed) @scored_phrases = args[:scored_phrases] if args.key?(:scored_phrases) end |