Upload a file into a RagCorpus.
Endpoint
upload uri, for media upload requests:`post
https://aiplatform.googleapis.com/upload/v1/{parent}/ragFiles:upload
- Metadata URI, for metadata-only requests:
POST https://aiplatform.googleapis.com/v1/{parent}/ragFiles:upload
Path parameters
parent
string
Required. The name of the RagCorpus resource into which to upload the file. Format: projects/{project}/locations/{location}/ragCorpora/{ragCorpus}
Request body
The request body contains data with the following structure:
Required. The RagFile to upload.
Required. The config for the RagFiles to be uploaded into the RagCorpus. VertexRagDataService.UploadRagFile
.
Response body
Response message for VertexRagDataService.UploadRagFile
.
If successful, the response body contains data with the following structure:
UploadRagFileConfig
Config for uploading RagFile.
Specifies the transformation config for RagFiles.
JSON representation |
---|
{
"ragFileTransformationConfig": {
object ( |