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.



12537
12538
12539
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12537

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


12522
12523
12524
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12522

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


12530
12531
12532
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12530

def grounding_chunk_indices
  @grounding_chunk_indices
end

#segmentGoogle::Apis::AiplatformV1::GoogleCloudAiplatformV1Segment

Segment of the content. Corresponds to the JSON property segment



12535
12536
12537
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12535

def segment
  @segment
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



12542
12543
12544
12545
12546
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 12542

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