Class: Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagChunkPageSpan
- Inherits:
-
Object
- Object
- Google::Apis::AiplatformV1::GoogleCloudAiplatformV1RagChunkPageSpan
- 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
-
#first_page ⇒ Fixnum
Page where chunk starts in the document.
-
#last_page ⇒ Fixnum
Page where chunk ends in the document.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagChunkPageSpan
constructor
A new instance of GoogleCloudAiplatformV1RagChunkPageSpan.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudAiplatformV1RagChunkPageSpan
Returns a new instance of GoogleCloudAiplatformV1RagChunkPageSpan.
29136 29137 29138 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29136 def initialize(**args) update!(**args) end |
Instance Attribute Details
#first_page ⇒ Fixnum
Page where chunk starts in the document. Inclusive. 1-indexed.
Corresponds to the JSON property firstPage
29129 29130 29131 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29129 def first_page @first_page end |
#last_page ⇒ Fixnum
Page where chunk ends in the document. Inclusive. 1-indexed.
Corresponds to the JSON property lastPage
29134 29135 29136 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29134 def last_page @last_page end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
29141 29142 29143 29144 |
# File 'lib/google/apis/aiplatform_v1/classes.rb', line 29141 def update!(**args) @first_page = args[:first_page] if args.key?(:first_page) @last_page = args[:last_page] if args.key?(:last_page) end |