Import files from Google Cloud Storage or Google Drive into a RagCorpus.
HTTP request
POST https://{service-endpoint}/v1beta1/{parent}/ragFiles:import
Where {service-endpoint}
is one of the supported service endpoints.
Path parameters
Parameters | |
---|---|
parent |
Required. The name of the RagCorpus resource into which to import files. Format: |
Request body
The request body contains data with the following structure:
JSON representation |
---|
{
"importRagFilesConfig": {
object ( |
Fields | |
---|---|
importRagFilesConfig |
Required. The config for the RagFiles to be synced and imported into the RagCorpus. |
Response body
If successful, the response body contains an instance of Operation
.
Authorization scopes
Requires the following OAuth scope:
https://www.googleapis.com/auth/cloud-platform
For more information, see the Authentication Overview.
ImportRagFilesConfig
Config for importing RagFiles.
JSON representation |
---|
{ "ragFileChunkingConfig": { object ( |
Fields | |
---|---|
ragFileChunkingConfig |
Specifies the size and overlap of chunks after importing RagFiles. |
Union field
|
|
gcsSource |
Google Cloud Storage location. Supports importing individual files as well as entire Google Cloud Storage directories. Sample formats: - |
googleDriveSource |
Google Drive location. Supports importing individual files as well as Google Drive folders. |