This feature is in public beta and is not recommended for production usage. Join the beta waitlist and review the review the preview terms for more details

This page shows you how to upload files to your assistant.

To learn about the concepts related to Pinecone Assistant, see Understanding Assistant.

Upload a file to an assistant with the Assistant API

To upload a file to your assistant from your local device, use the create file operation as in the following example.

PINECONE_API_KEY="YOUR_API_KEY"
ASSISTANT_NAME="YOUR_ASSISTANT_NAME"
LOCAL_FILE_PATH="/Users/jdoe/Downloads/example_file.txt"

curl --request POST \
  --url prod-1-data.ke.pinecone.io/assistant/files/$ASSISTANT_NAME \
  --header "Api-Key: $PINECONE_API_KEY" \
  -F "file=@$LOCAL_FILE_PATH"

It may take several minutes for your assistant to process your file. You can check the status of your file to determine if it is ready to use.

Limitations

File uploads have the following limitations:

  • Supported file types: .pdf, .txt
  • Maximum total uploaded document size: 1GB
  • Maximum files uploaded: 1000

Upload a file to an assistant in the Pinecone Console

To upload files to an assistant in the Pinecone Console, follow these steps:

  1. Open the Pinecone console.
  2. Select your project.
  3. Select Assistant (Beta) in the left panel.
  4. Select your assistant.
  5. Select the Files tab.
  6. Click the Upload button.
  7. Select the file to upload from your local machine.
  8. Click Add more files or the Import button to finish.

The status of your file import appears in the Files tab. When the status is Available, the assistant can use this file to respond to chats.