> For the complete documentation index, see [llms.txt](https://docs.fastn.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.fastn.ai/connectors/catalog/data-database/pinecone.md). Agents can also search and read this documentation through its [MCP server](https://docs.fastn.ai/~gitbook/mcp).

# Pinecone

Pinecone is a vector database for AI search. Create and configure indexes, collections and backups, run bulk imports and chat with assistants.

![Pinecone logo](https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-367dd6ead2164946ed6519720c6c667a05525e05%2Fpinecone.png?alt=media)

|                    |                                                                                 |
| ------------------ | ------------------------------------------------------------------------------- |
| **Category**       | [Data and databases](https://docs.fastn.ai/connectors/catalog/data-database.md) |
| **Website**        | [pinecone.io](https://pinecone.io)                                              |
| **Authentication** | API key                                                                         |
| **Slug**           | `pinecone`                                                                      |
| **On fastn.ai**    | [Embed Pinecone in your product](https://fastn.ai/integrations/pinecone)        |

## Setup

Your customers enter their API key for Pinecone when they connect. Nothing else needs setting up.

## Connect in Fastn

Your customers connect Pinecone from your widget. To connect an account yourself:

1. Go to **Build → Integrations → Connectors** and search for **Pinecone**.
2. Select **Connect** on the Pinecone card.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-586dd03cdc0c6904263f58928d7a531eae2f85df%2Fconnect-search.png?alt=media" alt="The Connectors page in Fastn with ServiceNow typed in the search box and the ServiceNow card showing a Connect button"><figcaption><p>Search for the connector, then select Connect on its card. ServiceNow is shown here.</p></figcaption></figure>
3. Fill in the fields the form asks for, using the values from [Setup](#setup) above. Then select **Connect**.

   <figure><img src="https://1255842839-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F3iSr2Tx8FvvuoLPncziH%2Fuploads%2Fgit-blob-51fb88ef328c525b5b11f8d7094bab11efc333b8%2Fconnect-credentials.png?alt=media" alt="The Connect ServiceNow dialog with an optional account name and the Instance, Username and Password fields, and Cancel and Connect buttons"><figcaption><p>A connect form that asks for credentials. Each connector asks for its own fields.</p></figcaption></figure>
4. Check that the connection appears under **Operate → Connections** with the status `Active`. Your workflows can now use Pinecone's actions.

For more detail, see [Connect an app](https://docs.fastn.ai/build/integrations/connectors/connect-an-app.md).

## Actions

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Assistant Chat Completions (OpenAI-compatible)</td><td><code>assistantChatCompletions</code></td><td>Chat with an assistant through an OpenAI-compatible Chat Completion interface. Useful for inline citations / OpenAI-compatible responses but with limited functionality vs the standard chat interface. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Cancel Bulk Import</td><td><code>cancelBulkImport</code></td><td>Cancel an import operation if it is not yet finished. No effect if already finished. Data-plane: requires the index host.</td></tr><tr><td>Chat With Assistant</td><td><code>chatAssistant</code></td><td>Chat with an assistant and get back citations in structured form. The recommended way to chat with an assistant, offering more control and functionality than the OpenAI-compatible interface. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Configure Index</td><td><code>configureIndex</code></td><td>Configure an existing index (scaling, read capacity, deletion protection, tags, or integrated embedding). All body fields are optional; only send the ones you want to change. Control-plane PATCH endpoint.</td></tr><tr><td>Create Assistant</td><td><code>createAssistant</code></td><td>Create a Pinecone assistant. Specify the assistant name, optional instructions, optional metadata, and the deployment region (us or eu).</td></tr><tr><td>Create Backup</td><td><code>createBackup</code></td><td>Create a backup of an index. Optional name and description.</td></tr><tr><td>Create Collection</td><td><code>createCollection</code></td><td>Create a Pinecone collection from a source index. Serverless indexes do not support collections.</td></tr><tr><td>Create Index</td><td><code>createIndex</code></td><td>Create a Pinecone index. Specify name, dimension, metric, vector_type, deletion_protection, tags, and the deployment spec (serverless/pod/byoc). The spec is a nested object passed as a templated object input. Control-plane endpoint.</td></tr><tr><td>Create Index For Model</td><td><code>createIndexForModel</code></td><td>Create an index with integrated embedding. Pinecone uses a hosted embedding model to convert source text automatically during upsert and search. Provide name, cloud, region, and embed config. Control-plane endpoint.</td></tr><tr><td>Create Index From Backup</td><td><code>createIndexFromBackup</code></td><td>Create an index from a backup. Returns the restore job id and the new index id.</td></tr></tbody></table>

<details>

<summary>View 45 more actions</summary>

<table><thead><tr><th width="240">Action</th><th width="260">Slug</th><th>What it does</th></tr></thead><tbody><tr><td>Create Namespace</td><td><code>createNamespace</code></td><td>Create a namespace in a serverless index. Data-plane: requires the index host.</td></tr><tr><td>Delete Assistant</td><td><code>deleteAssistant</code></td><td>Delete an existing Pinecone assistant by its name.</td></tr><tr><td>Delete Assistant File</td><td><code>deleteAssistantFile</code></td><td>Delete an uploaded file from an assistant. Asynchronous; returns an operation id (202) or empty body (204 for files that previously failed processing). Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Delete Backup</td><td><code>deleteBackup</code></td><td>Delete a backup by backup_id.</td></tr><tr><td>Delete Collection</td><td><code>deleteCollection</code></td><td>Delete an existing collection by name. Serverless indexes do not support collections.</td></tr><tr><td>Delete Index</td><td><code>deleteIndex</code></td><td>Delete an existing index by name. Fails with 403 if deletion protection is enabled. Control-plane endpoint.</td></tr><tr><td>Delete Namespace</td><td><code>deleteNamespace</code></td><td>Delete a namespace from a serverless index. Irreversible; all data in the namespace is permanently deleted. Data-plane: requires the index host.</td></tr><tr><td>Delete Vectors</td><td><code>deleteVectors</code></td><td>Delete records by id, by metadata filter, or all records from a single namespace. ids is mutually exclusive with filter and deleteAll. Data-plane operation; requires index_host.</td></tr><tr><td>Describe Assistant File</td><td><code>describeAssistantFile</code></td><td>Get the current status and metadata of a file uploaded to an assistant. Optionally include the signed URL. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Describe Assistant Operation</td><td><code>describeAssistantOperation</code></td><td>Get the status of a single operation on an assistant by operation_id. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Describe Backup</td><td><code>describeBackup</code></td><td>Get a description of a backup by backup_id.</td></tr><tr><td>Describe Bulk Import</td><td><code>describeBulkImport</code></td><td>Return details of a specific import operation. Data-plane: requires the index host.</td></tr><tr><td>Describe Collection</td><td><code>describeCollection</code></td><td>Get a description of a collection by name. Serverless indexes do not support collections.</td></tr><tr><td>Describe Index</td><td><code>describeIndex</code></td><td>Get a description of an index by name, including its host (needed for data-plane calls), dimension, metric, spec, and status. Control-plane endpoint.</td></tr><tr><td>Describe Index Stats</td><td><code>describeIndexStats</code></td><td>Return statistics about the contents of an index, including vector count per namespace, number of dimensions, and index fullness. Data-plane operation; requires index_host. Optional metadata filter limits stats to matching vectors.</td></tr><tr><td>Describe Model</td><td><code>getModel</code></td><td>Get a description of a single model hosted by Pinecone by its name.</td></tr><tr><td>Describe Namespace</td><td><code>describeNamespace</code></td><td>Describe a namespace in a serverless index, including the total number of vectors. Data-plane: requires the index host.</td></tr><tr><td>Describe Restore Job</td><td><code>describeRestoreJob</code></td><td>Get a description of a restore job by job_id.</td></tr><tr><td>Fetch Vectors</td><td><code>fetchVectors</code></td><td>Look up and return records by ID from a single namespace. Returned records include vector data and/or metadata. GET with query params; ids is repeated. Data-plane operation; requires index_host.</td></tr><tr><td>Fetch Vectors By Metadata</td><td><code>fetchVectorsByMetadata</code></td><td>Look up and return records by metadata from a single namespace. Returned records include vector data and metadata. Data-plane operation; requires index_host.</td></tr><tr><td>Generate Embeddings</td><td><code>embed</code></td><td>Generate vector embeddings for input data using Pinecone's hosted embedding models. Provide the embedding model name and a list of text inputs.</td></tr><tr><td>Get Assistant</td><td><code>getAssistant</code></td><td>Get the status and configuration of a Pinecone assistant by its name.</td></tr><tr><td>List Assistant Files</td><td><code>listAssistantFiles</code></td><td>List all files in an assistant, with an option to filter files with metadata. Assistant data-plane operation; requires the per-assistant host (assistant_host) returned by describe_assistant.host.</td></tr><tr><td>List Assistant Operations</td><td><code>listAssistantOperations</code></td><td>List all operations for an assistant (in progress, recently completed, or failed). Successful and failed operations are retained 30 days. Filter by operation_type and status. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>List Assistants</td><td><code>listAssistants</code></td><td>List all assistants in a Pinecone project. Supports pagination via limit and pagination_token. Returns the assistants array and a pagination object.</td></tr><tr><td>List Available Models</td><td><code>listModels</code></td><td>List the embedding and reranking models hosted by Pinecone. Optionally filter by type and vector_type.</td></tr><tr><td>List Bulk Imports</td><td><code>listBulkImports</code></td><td>List all recent and ongoing import operations. Data-plane: requires the index host. Supports pagination.</td></tr><tr><td>List Collections</td><td><code>listCollections</code></td><td>List all collections in a project. Serverless indexes do not support collections.</td></tr><tr><td>List Index Backups</td><td><code>listIndexBackups</code></td><td>List all backups for a specific index.</td></tr><tr><td>List Indexes</td><td><code>listIndexes</code></td><td>List all indexes in a Pinecone project. Returns an array of index descriptions including name, host, dimension, metric, spec, and status. Control-plane endpoint.</td></tr><tr><td>List Namespaces</td><td><code>listNamespaces</code></td><td>List all namespaces in a serverless index. Data-plane: requires the index host. Supports pagination and prefix filtering.</td></tr><tr><td>List Project Backups</td><td><code>listProjectBackups</code></td><td>List all backups for all indexes in a project.</td></tr><tr><td>List Restore Jobs</td><td><code>listRestoreJobs</code></td><td>List all restore jobs for a project.</td></tr><tr><td>List Vector IDs</td><td><code>listVectors</code></td><td>List the IDs of records in a single namespace of a serverless index. Optional prefix limits results to IDs with a common prefix. Returns up to 100 IDs at a time by default with a pagination_token. GET with query params. Data-plane operation; requires index_host. Serverless indexes only.</td></tr><tr><td>Query Vectors</td><td><code>queryVectors</code></td><td>Search a namespace using a query vector or vector id. Retrieves the ids of the most similar items in a namespace, along with their similarity scores. Data-plane operation; requires the per-index host (index_host from describe_index.host).</td></tr><tr><td>Rerank Results</td><td><code>rerank</code></td><td>Rerank documents according to their relevance to a query using a Pinecone hosted reranking model.</td></tr><tr><td>Retrieve Assistant Context</td><td><code>retrieveAssistantContext</code></td><td>Retrieve context snippets from an assistant to use as part of RAG or any agentic flow. Provide exactly one of query or messages. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Search Records</td><td><code>searchRecords</code></td><td>Search a namespace with a query text, query vector, or record ID and return the most similar records with similarity scores. Optionally rerank. Searching with text requires an index with integrated embedding. Data-plane: requires the index host.</td></tr><tr><td>Start Bulk Import</td><td><code>startBulkImport</code></td><td>Start an asynchronous import of vectors from object storage into an index. Data-plane: requires the index host.</td></tr><tr><td>Update Assistant</td><td><code>updateAssistant</code></td><td>Update an existing Pinecone assistant. You can modify the assistant's instructions and/or metadata.</td></tr><tr><td>Update Vector</td><td><code>updateVector</code></td><td>Update records by ID or by metadata filter in a namespace. Updating by ID changes the vector and/or metadata of a single record. If set_metadata is included, only the specified metadata fields are modified. Data-plane operation; requires index_host.</td></tr><tr><td>Upload Assistant File</td><td><code>uploadAssistantFile</code></td><td>Upload a file to the specified assistant (multipart/form-data). An identifier is generated automatically. Asynchronous; the response includes an operation id to poll via describe_operation. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Upsert Assistant File</td><td><code>upsertAssistantFile</code></td><td>Create or replace a file in the specified assistant by assistant_file_id (multipart/form-data). If the file exists it is replaced; otherwise a new one is created with that id. Asynchronous; returns an operation id. Assistant data-plane operation; requires assistant_host.</td></tr><tr><td>Upsert Records</td><td><code>upsertRecords</code></td><td>Upsert text records into a namespace; Pinecone converts text to vectors using the index's hosted embedding model. Body is newline-delimited JSON (application/x-ndjson): one record per line. Each record must include an _id field plus a field matching the index field_map (e.g. chunk_text); other fields are stored as metadata. Supported only for indexes with integrated embedding. Data-plane: requires the index host.</td></tr><tr><td>Upsert Vectors</td><td><code>upsertVectors</code></td><td>Upsert records into a namespace. If a new value is upserted for an existing record ID, it overwrites the previous value. Data-plane operation; requires the per-index host (index_host).</td></tr></tbody></table>

</details>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.fastn.ai/connectors/catalog/data-database/pinecone.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
