Class: Google::Cloud::AIPlatform::V1::RagChunk

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb

Overview

A RagChunk includes the content of a chunk of a RagFile, and associated metadata.

Defined Under Namespace

Classes: PageSpan

Instance Attribute Summary collapse

Instance Attribute Details

#page_span::Google::Cloud::AIPlatform::V1::RagChunk::PageSpan

Returns If populated, represents where the chunk starts and ends in the document.

Returns:



341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
# File 'proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb', line 341

class RagChunk
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the chunk starts and ends in the document.
  # @!attribute [rw] first_page
  #   @return [::Integer]
  #     Page where chunk starts in the document. Inclusive. 1-indexed.
  # @!attribute [rw] last_page
  #   @return [::Integer]
  #     Page where chunk ends in the document. Inclusive. 1-indexed.
  class PageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#text::String

Returns The content of the chunk.

Returns:

  • (::String)

    The content of the chunk.



341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
# File 'proto_docs/google/cloud/aiplatform/v1/vertex_rag_data.rb', line 341

class RagChunk
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Represents where the chunk starts and ends in the document.
  # @!attribute [rw] first_page
  #   @return [::Integer]
  #     Page where chunk starts in the document. Inclusive. 1-indexed.
  # @!attribute [rw] last_page
  #   @return [::Integer]
  #     Page where chunk ends in the document. Inclusive. 1-indexed.
  class PageSpan
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end