Class RagFile (1.49.0)

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

A RagFile contains user data for chunking, embedding and indexing.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

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

Attributes

NameDescription
gcs_source google.cloud.aiplatform_v1beta1.types.GcsSource
Output only. Google Cloud Storage location of the RagFile. It does not support wildcards in the GCS uri for now. This field is a member of oneof_ rag_file_source.
google_drive_source google.cloud.aiplatform_v1beta1.types.GoogleDriveSource
Output only. Google Drive location. Supports importing individual files as well as Google Drive folders. This field is a member of oneof_ rag_file_source.
direct_upload_source google.cloud.aiplatform_v1beta1.types.DirectUploadSource
Output only. The RagFile is encapsulated and uploaded in the UploadRagFile request. This field is a member of oneof_ rag_file_source.
name str
Output only. The resource name of the RagFile.
display_name str
Required. The display name of the RagFile. The name can be up to 128 characters long and can consist of any UTF-8 characters.
description str
Optional. The description of the RagFile.
size_bytes int
Output only. The size of the RagFile in bytes.
rag_file_type google.cloud.aiplatform_v1beta1.types.RagFile.RagFileType
Output only. The type of the RagFile.
create_time google.protobuf.timestamp_pb2.Timestamp
Output only. Timestamp when this RagFile was created.
update_time google.protobuf.timestamp_pb2.Timestamp
Output only. Timestamp when this RagFile was last updated.

Classes

RagFileType

RagFileType(value)

The type of the RagFile.

Values: RAG_FILE_TYPE_UNSPECIFIED (0): RagFile type is unspecified. RAG_FILE_TYPE_TXT (1): RagFile type is TXT. RAG_FILE_TYPE_PDF (2): RagFile type is PDF.

Methods

RagFile

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

A RagFile contains user data for chunking, embedding and indexing.

This message has oneof_ fields (mutually exclusive fields). For each oneof, at most one member field can be set at the same time. Setting any member of the oneof automatically clears all other members.

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