Class: Google::Apis::AiplatformV1beta1::LearningGenaiRootGroundingMetadataCitation

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) ⇒ LearningGenaiRootGroundingMetadataCitation

Returns a new instance of LearningGenaiRootGroundingMetadataCitation.



35640
35641
35642
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 35640

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

Instance Attribute Details

#end_indexFixnum

Index in the prediction output where the citation ends (exclusive). Must be > start_index and <= len(output). Corresponds to the JSON property endIndex

Returns:

  • (Fixnum)


35620
35621
35622
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 35620

def end_index
  @end_index
end

#fact_indexFixnum

Index of the fact supporting this claim. Should be within the range of the world_facts in the GenerateResponse. Corresponds to the JSON property factIndex

Returns:

  • (Fixnum)


35626
35627
35628
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 35626

def fact_index
  @fact_index
end

#scoreFloat

Confidence score of this entailment. Value is [0,1] with 1 is the most confidence. Corresponds to the JSON property score

Returns:

  • (Float)


35632
35633
35634
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 35632

def score
  @score
end

#start_indexFixnum

Index in the prediction output where the citation starts (inclusive). Must be > = 0 and < end_index. Corresponds to the JSON property startIndex

Returns:

  • (Fixnum)


35638
35639
35640
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 35638

def start_index
  @start_index
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



35645
35646
35647
35648
35649
35650
# File 'lib/google/apis/aiplatform_v1beta1/classes.rb', line 35645

def update!(**args)
  @end_index = args[:end_index] if args.key?(:end_index)
  @fact_index = args[:fact_index] if args.key?(:fact_index)
  @score = args[:score] if args.key?(:score)
  @start_index = args[:start_index] if args.key?(:start_index)
end