Pinecone
ToolJet integrates with Pinecone to utilize its vector database capabilities. This integration enables ToolJet to perform vector operations such as updating, querying, and managing vector embeddings in Pinecone indexes.
Before following this guide, it is assumed that you have already completed the process of Using Marketplace plugins.
Connection​
For connecting to Pinecone, the following credential is required:
- API Key: API key for Pinecone can be generated from the Pinecone Console.

Supported Operations​
- Get Index Stats
- List Vector IDs
- Fetch Vectors
- Upsert Vectors
- Update Vector
- Delete Vectors
- Query Vectors
Get Index Stats​
This operation retrieves statistics about a specific index in your Pinecone database.
Required Parameter​
- Index: The name of the index to get statistics for.

Example Response
{
"namespaces":{
"":{
"recordCount":100
}
},
"dimension":1024,
"indexFullness":0,
"totalRecordCount":100
}
List Vector IDs​
This operation retrieves a list of vector IDs from a specified index.
Required Parameter​
- Index: The name of the index to list vector IDs from.
Optional Parameters​
- Prefix: Filter vector IDs by prefix.
- Limit: Maximum number of vector IDs to return.
- Pagination Token: Token for retrieving the next page of results.
- Namespace: Specific namespace to query within the index.

Example Response
{
"vectors":[
{"id":"0"},
{"id":"1"},
{"id":"10"},
{"id":"11"},
{"id":"12"},
{"id":"13"},
{"id":"14"},
{"id":"15"},
{"id":"16"},
{"id":"17"}
],
"pagination":{
"next":"eyJza2lwX3Bhc3QiOiIxNyIsInByZWZpeCI6bnVsbH0="
},
"namespace":"",
"usage":{
"readUnits":1
}
}
Fetch Vectors​
This operation retrieves specific vectors by their IDs from an index.
Required Parameters​
- Index: The name of the index to fetch vectors from.
- IDs: Array of vector IDs to fetch.
Optional Parameters​
- Namespace: Specific namespace to fetch vectors from.

Example Response
{
"records":{},
"namespace":"",
"usage":{
"readUnits":1
}
}
Upsert Vectors​
This operation inserts or updates vectors in an index.
Required Parameters​
- Index: The name of the index to upsert vectors into.
- Vectors: Array of vectors to upsert, including IDs and values.
Optional Parameters​
- Namespace: Specific namespace to upsert vectors into

Example Response
Upsert Successful
Update a Vector​
This operation updates a single vector's values or metadata.
Required Parameters​
- Index: The name of the index containing the vector.
- ID: ID of the vector to update.
Optional Parameters​
- Values: Updated vector values as an array.
- Sparse Vector: Sparse vector representation.
- Metadata: Additional metadata for the vector.
- Namespace: Specific namespace containing the vector.

Example Response
Update Successful
Delete Vectors​
This operation deletes vectors from an index.
Required Parameters​
- Index: The name of the index to delete vectors from.