Class RagChunk (1.144.0)

RagChunk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

Attributes

Name Description
text str
The content of the chunk.
page_span google.cloud.aiplatform_v1beta1.types.RagChunk.PageSpan
If populated, represents where the chunk starts and ends in the document. This field is a member of oneof_ _page_span.
file_id str
The ID of the file that the chunk belongs to.
chunk_id str
The ID of the chunk.

Classes

PageSpan

PageSpan(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Represents where the chunk starts and ends in the document.

Methods

RagChunk

RagChunk(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields