Reference documentation and code samples for the Vertex AI V1 API class Google::Cloud::AIPlatform::V1::RagChunk.
A RagChunk includes the content of a chunk of a RagFile, and associated metadata.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#page_span
def page_span() -> ::Google::Cloud::AIPlatform::V1::RagChunk::PageSpan
Returns
- (::Google::Cloud::AIPlatform::V1::RagChunk::PageSpan) — If populated, represents where the chunk starts and ends in the document.
#page_span=
def page_span=(value) -> ::Google::Cloud::AIPlatform::V1::RagChunk::PageSpan
Parameter
- value (::Google::Cloud::AIPlatform::V1::RagChunk::PageSpan) — If populated, represents where the chunk starts and ends in the document.
Returns
- (::Google::Cloud::AIPlatform::V1::RagChunk::PageSpan) — If populated, represents where the chunk starts and ends in the document.
#text
def text() -> ::String
Returns
- (::String) — The content of the chunk.
#text=
def text=(value) -> ::String
Parameter
- value (::String) — The content of the chunk.
Returns
- (::String) — The content of the chunk.