Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1GroundingSupport

Inherits:
Object
  • Object
show all
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

Overview

Grounding support.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1GroundingSupport

Returns a new instance of GoogleCloudAiplatformV1GroundingSupport.



10642
10643
10644
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10642

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

Instance Attribute Details

#confidence_scoresArray<Float>

Confidence score of the support references. Ranges from 0 to 1. 1 is the most confident. This list must have the same size as the grounding_chunk_indices. Corresponds to the JSON property confidenceScores

Returns:

  • (Array<Float>)


10627
10628
10629
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10627

def confidence_scores
  @confidence_scores
end

#grounding_chunk_indicesArray<Fixnum>

A list of indices (into 'grounding_chunk') specifying the citations associated with the claim. For instance [1,3,4] means that grounding_chunk[1], grounding_chunk[3], grounding_chunk[4] are the retrieved content attributed to the claim. Corresponds to the JSON property groundingChunkIndices

Returns:

  • (Array<Fixnum>)


10635
10636
10637
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10635

def grounding_chunk_indices
  @grounding_chunk_indices
end

#segmentGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment

Segment of the content. Corresponds to the JSON property segment



10640
10641
10642
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10640

def segment
  @segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



10647
10648
10649
10650
10651
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 10647

def update!(**args)
  @confidence_scores = args[:confidence_scores] if args.key?(:confidence_scores)
  @grounding_chunk_indices = args[:grounding_chunk_indices] if args.key?(:grounding_chunk_indices)
  @segment = args[:segment] if args.key?(:segment)
end