Upload a file to the specified assistant.
For guidance and examples, see Manage files.
Pinecone API Key
Required date-based version header
The name of the assistant to upload files to.
Optional JSON-encoded metadata for files.
Optional flag to opt in to multimodal file processing (PDFs only). Can be either true or false. Default is false.
The desired file to be uploaded and processed into the assistant.
The file to upload.
File upload has been accepted.
The response format for a successful file upload request.
The current state of the uploaded file. Possible values:
Processing: File is being processed (parsed, chunked, embedded)Available: Processing completed successfully; file is ready for useDeleting: Deletion has been initiated but not yet completedProcessingFailed: Processing failed with an errorNote: Once a file is deleted, the API returns 404 Not Found instead of a file object.
The percentage of the file that has been processed
A signed URL that provides temporary, read-only access to the underlying file. Anyone with the link can access the file, so treat it as sensitive data. Expires after a short time.
"https://storage.googleapis.com/bucket/file.pdf?..."
A message describing any error during file processing. Provided only if an error occurs.
Indicates whether the file was processed as multimodal.