RagFileMetadataConfig Stay organized with collections Save and categorize content based on your preferences.
metadata config for RagFile.
metadata_schema_sourceUnion typemetadata_schema_source can be only one of the following:gcsMetadataSchemaSourceobject (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.
googleDriveMetadataSchemaSourceobject (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.
inlineMetadataSchemaSourcestringInline metadata schema source. Must be a JSON string.
metadata_sourceUnion typemetadata_source can be only one of the following:gcsMetadataSourceobject (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.
googleDriveMetadataSourceobject (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.
inlineMetadataSourcestringInline metadata source. Must be a JSON string.
| JSON representation |
|---|
{// metadata_schema_source"gcsMetadataSchemaSource":{object ( |
Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-07-31 UTC.