RagFileMetadataConfig

metadata config for RagFile.

Fields
metadata_schema_source Union type
Specifies the metadata schema source. metadata_schema_source can be only one of the following:
gcsMetadataSchemaSource object (GcsSource)

Google Cloud Storage ___location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats: - gs://bucketName/my_directory/objectName/metadataSchema.json - gs://bucketName/my_directory If the user provides a directory, the metadata schema will be read from the files that ends with "metadataSchema.json" in the directory.

googleDriveMetadataSchemaSource object (GoogleDriveSource)

Google Drive ___location. Supports importing individual files as well as Google Drive folders. If the user provides a folder, the metadata schema will be read from the files that ends with "metadataSchema.json" in the directory.

inlineMetadataSchemaSource string

Inline metadata schema source. Must be a JSON string.

metadata_source Union type
Specifies the metadata source. metadata_source can be only one of the following:
gcsMetadataSource object (GcsSource)

Google Cloud Storage ___location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats: - gs://bucketName/my_directory/objectName/metadata.json - gs://bucketName/my_directory If the user provides a directory, the metadata will be read from the files that ends with "metadata.json" in the directory.

googleDriveMetadataSource object (GoogleDriveSource)

Google Drive ___location. Supports importing individual files as well as Google Drive folders. If the user provides a directory, the metadata will be read from the files that ends with "metadata.json" in the directory.

inlineMetadataSource string

Inline metadata source. Must be a JSON string.

JSON representation
{

  // metadata_schema_source
  "gcsMetadataSchemaSource": {
    object (GcsSource)
  },
  "googleDriveMetadataSchemaSource": {
    object (GoogleDriveSource)
  },
  "inlineMetadataSchemaSource": string
  // Union type

  // metadata_source
  "gcsMetadataSource": {
    object (GcsSource)
  },
  "googleDriveMetadataSource": {
    object (GoogleDriveSource)
  },
  "inlineMetadataSource": string
  // Union type
}