Class: Google::Apis::FirebasemlV2beta::GoogleCloudAiplatformV1beta1RagChunkPageSpan

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/firebaseml_v2beta/classes.rb,
lib/google/apis/firebaseml_v2beta/representations.rb,
lib/google/apis/firebaseml_v2beta/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) ⇒ GoogleCloudAiplatformV1beta1RagChunkPageSpan

Returns a new instance of GoogleCloudAiplatformV1beta1RagChunkPageSpan.



2826
2827
2828
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2826

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)


2819
2820
2821
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2819

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)


2824
2825
2826
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2824

def last_page
  @last_page
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2831
2832
2833
2834
# File 'lib/google/apis/firebaseml_v2beta/classes.rb', line 2831

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