Actions6
- Assistant Actions
- File Actions
- Context Snippet Actions
File → Upload File
AI-generatedSummary
Upload a file to a specified Pinecone Assistant, associating it with a unique external file ID and optional metadata.
Inputs
- Assistant Name (required) — The Pinecone Assistant to upload the file to, selected from available assistants.
- Input Data Field Name (required) — The name of the binary data field in the input items containing the file data to be uploaded.
- External File ID (required) — A unique identifier for the file within the Pinecone Assistant to associate the uploaded file with.
- Additional Fields — Optional parameters including metadata key-value pairs, a flag to enable multimodal context for PDF files, and a source tag to attribute the integration usage.
Output shape
a list containing a single JSON object representing the uploaded file's details as returned by the Pinecone Assistant API
The output is returned as a JSON array with the API response data of the uploaded file. The operation requires the input item to include binary data referenced by the provided Input Data Field Name. An error is thrown if External File ID is missing.
Examples
Example 1: Upload a PDF file with metadata to a Pinecone Assistant
Set Assistant Name to the target assistant, specify the Input Data Field Name containing the PDF binary, provide a unique External File ID, and supply metadata keys and values in Additional Fields to enrich the file's context.