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. |
maxEmbeddingRequestsPerMin |
Optional. The max number of queries per minute that this job is allowed to make to the embedding model specified on the corpus. This value is specific to this job and not shared across other import jobs. Consult the Quotas page on the project to set an appropriate value here. If unspecified, a default value of 1,000 QPM would be used. |
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. |