Class RagChunk (1.93.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_v1.types.RagChunk.PageSpan
If populated, represents where the chunk starts and ends in the document. This field is a member of oneof_ _page_span.

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