File upload limitations depend on the plan you are using. For more information, see Pricing and limitations.
Upload a local file
You can upload a file to your assistant from your local device, as in the following example:You can upload a file to an assistant using the Pinecone console. Select the assistant you want to upload to and add the file in the Assistant playground.
Upload a file with metadata
You can upload a file with metadata. Metadata is a dictionary of key-value pairs that you can use to store additional information about the file. For example, you can use metadata to store the file’s name, document type, publish date, or any other relevant information.Upload a PDF with multimodal context
Assistants can gather context from images contained in PDF files. To learn more about this feature, see Multimodal context for assistants.Upload from a binary stream
You can upload a file directly from an in-memory binary stream using the Python SDK and the BytesIO class.When uploading text-based files (like .txt, .md, .json, etc.) through BytesIO streams, make sure the content is encoded in UTF-8 format.
Python