Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagChunkPageSpan

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

Represents where the chunk starts and ends in the document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudAiplatformV1RagChunkPageSpan

Returns a new instance of GoogleCloudAiplatformV1RagChunkPageSpan.



32443
32444
32445
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32443

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

Instance Attribute Details

#first_pageFixnum

Page where chunk starts in the document. Inclusive. 1-indexed. Corresponds to the JSON property firstPage

Returns:

  • (Fixnum)


32436
32437
32438
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32436

def first_page
  @first_page
end

#last_pageFixnum

Page where chunk ends in the document. Inclusive. 1-indexed. Corresponds to the JSON property lastPage

Returns:

  • (Fixnum)


32441
32442
32443
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32441

def last_page
  @last_page
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



32448
32449
32450
32451
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 32448

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