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_directoryIf the user provides a directory, the metadata schema will be read from the files that ends with "metadataSchema.json" in the directory.
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.
inlineMetadataSchemaSourcestring
Inline metadata schema source. Must be a JSON string.
metadata_sourceUnion type
Specifies the metadata source.metadata_sourcecan be only one of the following:
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_directoryIf the user provides a directory, the metadata will be read from the files that ends with "metadata.json" in the directory.
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.
inlineMetadataSourcestring
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}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-07-31 UTC."],[],[],null,["# RagFileMetadataConfig\n\nmetadata config for RagFile.\nFields \n`metadata_schema_source` `Union type` \nSpecifies the metadata schema source. `metadata_schema_source` can be only one of the following:\n`gcsMetadataSchemaSource` `object (`[GcsSource](/vertex-ai/docs/reference/rest/v1beta1/GcsSource)`)` \nGoogle 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.\n`googleDriveMetadataSchemaSource` `object (`[GoogleDriveSource](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.ragCorpora.ragFiles#GoogleDriveSource)`)` \nGoogle 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.\n`inlineMetadataSchemaSource` `string` \nInline metadata schema source. Must be a JSON string. \n`metadata_source` `Union type` \nSpecifies the metadata source. `metadata_source` can be only one of the following:\n`gcsMetadataSource` `object (`[GcsSource](/vertex-ai/docs/reference/rest/v1beta1/GcsSource)`)` \nGoogle 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.\n`googleDriveMetadataSource` `object (`[GoogleDriveSource](/vertex-ai/docs/reference/rest/v1beta1/projects.locations.ragCorpora.ragFiles#GoogleDriveSource)`)` \nGoogle 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.\n`inlineMetadataSource` `string` \nInline metadata source. Must be a JSON string."]]