This page shows you how to upload a file, view a list of files, check the status of a file, and delete a file from your assistant.

File upload limitations depend on the plan you are using. For more information, see Understanding Pinecone Assistant.

Upload a local file

You can upload a file to your assistant from your local device, as in the following example:

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.

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 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.

When a file is uploaded with metadata, you can use the metadata to filter a list of files and filter chat responses.

List files in an assistant

View all files

You can get the status, ID, and metadata for each file in your assistant, as in the following example:

This operation returns a response like the following:

{
  "files": [
    {
      "name": "example_file.txt",
      "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
      "metadata": {},
      "created_on": "2023-11-07T05:31:56Z",
      "updated_on": "2023-11-07T05:31:56Z",
      "status": "Processing"
    }
  ]
}

You can use the id value to check the status of an individual file.

You can list file in an assistant using the Pinecone console. Select the assistant and view the files in the Assistant playground.

View a filtered list of files

Metadata filter expressions can be included when listing files. This will limit the list of files to only those matching the filter expression. Use the filter parameter to specify the metadata filter expression.

For more information about filtering with metadata, see Understanding Pinecone Assistant.

The following example lists files that are a manuscript:

Get the status of a file

You can get the status and metadata for your assistant, as in the following example:

This operation returns a response like the following:

{
  "name": "<string>",
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "metadata": {},
  "created_on": "2023-11-07T05:31:56Z",
  "updated_on": "2023-11-07T05:31:56Z",
  "status": "Processing",
  "percent_done": 0.5,
  "signed_url": "https://storage.googleapis.com...",
  "error_message": null,
  "size": 1073470
}

You can check the status a file using the Pinecone console. In the Assistant playground, click the file for more details.

Delete a file

You can delete a file from an assistant.

Once a file is deleted, you cannot recover it.

You can delete a file from an assistant using the Pinecone console. In the Assistant playground, find the file and click the ellipsis (..) menu > Delete.

Was this page helpful?