The Pinecone connector lets your AI agent act in each user's Pinecone account. Each user connects their own Pinecone API key once, and Scalekit sends it with every call, so your agent never handles credentials. It comes with 22 tools.
- Tools
- 22
- What they doRead · write · destructive
- 12 · 7 · 312 read7 write3 destructive
- Users sign in with
- API key
Setup
Install the SDK
Terminal window npm install @scalekit-sdk/node dotenvTerminal window pip install scalekit-sdk-python python-dotenvSet your credentials
Add your Scalekit credentials to your
.envfile. Find values in app.scalekit.com > Developers > API Credentials..env SCALEKIT_ENVIRONMENT_URL=<your-environment-url>SCALEKIT_CLIENT_ID=<your-client-id>SCALEKIT_CLIENT_SECRET=<your-client-secret>Create the Pinecone connection
In AgentKit > Connections, create a Pinecone connection. The name you give it is the
connection_nameyour code passes. See Configure connections.Authorize a user and make your first call
quickstart.mts import { ScalekitClient } from '@scalekit-sdk/node'import 'dotenv/config'import { createInterface } from 'node:readline/promises'const scalekit = new ScalekitClient(process.env.SCALEKIT_ENVIRONMENT_URL,process.env.SCALEKIT_CLIENT_ID,process.env.SCALEKIT_CLIENT_SECRET,)const actions = scalekit.actionsconst connector = 'pinecone'const identifier = 'user_123'// Generate an authorization link for the userconst { link } = await actions.getAuthorizationLink({ connectionName: connector, identifier })console.log('Authorize Pinecone:', link)const rl = createInterface({ input: process.stdin, output: process.stdout })await rl.question('Press Enter after authorizing...')rl.close()// Make your first callconst result = await actions.executeTool({connector,identifier,toolName: 'pinecone_index_stats_get',toolInput: {},})console.log(result)Terminal window npx tsx quickstart.mtsquickstart.py import osfrom scalekit import ScalekitClientfrom dotenv import load_dotenvload_dotenv()scalekit_client = ScalekitClient(env_url=os.getenv("SCALEKIT_ENVIRONMENT_URL"),client_id=os.getenv("SCALEKIT_CLIENT_ID"),client_secret=os.getenv("SCALEKIT_CLIENT_SECRET"),)actions = scalekit_client.actionsconnection_name = "pinecone"identifier = "user_123"# Generate an authorization link for the userlink_response = actions.get_authorization_link(connection_name=connection_name,identifier=identifier,)print("Authorize Pinecone:", link_response.link)input("Press Enter after authorizing...")# Make your first callresult = actions.execute_tool(tool_input={},tool_name="pinecone_index_stats_get",connection_name=connection_name,identifier=identifier,)print(result)Terminal window python quickstart.pyEach user opens the link once and enters their Pinecone credentials there. See Authorize a user for the full flow and statuses.
Tools
Pass the exact name toexecute_toolpinecone_index_getGet the configuration and status of one Pinecone index by name.Read-onlyGet Index
Get the configuration and status of one Pinecone index by name. Returns the index host and private host, status (ready, state), deployment, schema (fields with their dimension, metric or embedding model), read capacity, deletion protection and tags. Use this to check that a new index is ready or to read its host. Use pinecone_index_stats_get for record counts per namespace.
Inputs
index_namestringrequired- Name of the Pinecone index to describe, as returned by pinecone_indexes_list. Example: docs-example
pinecone_index_stats_getGet record statistics for the Pinecone index on the connected account's index host.Read-onlyGet Index Stats
Get record statistics for the Pinecone index on the connected account's index host. Returns the total record count, the record count per namespace, the dimension, the index fullness and the metric. Use this to see how much data each namespace holds. Use pinecone_index_get for configuration and pinecone_namespaces_list to page through many namespaces.
Inputs
filterobject- Metadata filter that limits the counted records (pod-based indexes only; serverless indexes reject a filter), written in Pinecone's filter language: a field name maps to a value or to an operator object such as $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin or $exists, and $and / $or combine conditions. Example: {"genre": {"$eq": "documentary"}, "year": {"$gte": 2020}}
pinecone_indexes_listList every index in the Pinecone project that the API key belongs to.Read-onlyList Indexes
List every index in the Pinecone project that the API key belongs to. Returns each index's name, host, status (ready or not), deployment (cloud, region), schema, deletion protection and tags. Use this to find an index name or its data-plane host. Use pinecone_index_get when you already know the index name.
Inputs
This tool takes no inputs.
pinecone_model_getGet the details of one Pinecone-hosted embedding or reranking model by name.Read-onlyGet Model
Get the details of one Pinecone-hosted embedding or reranking model by name. Returns its type, vector type, default and supported dimensions, metrics, maximum sequence length and batch size, and supported parameters. Use this to check a model's limits and parameters before calling it. Use pinecone_models_list to see all models.
Inputs
model_namestringrequired- Name of the hosted model. Example: llama-text-embed-v2
pinecone_models_listList the embedding and reranking models Pinecone hosts, optionally only one type.Read-onlyList Models
List the embedding and reranking models Pinecone hosts, optionally only one type. Returns each model's name, type, vector type, supported dimensions and metrics, token limits and parameters. Use this to pick a model for pinecone_embeddings_generate, pinecone_documents_rerank or pinecone_index_create_for_model. Use pinecone_model_get for one model.
Inputs
typestring- Only list models of this type: embed or rerank. Example: embedone of
embedrerank vector_typestring- With type embed, only list models that produce this vector type: dense or sparse. Example: denseone of
densesparse
pinecone_namespace_getGet one namespace of the Pinecone index on the connected account by name.Read-onlyGet Namespace
Get one namespace of the Pinecone index on the connected account by name. Returns the namespace name, its record count and its schema of indexed metadata fields when one is set. Use this to check how many records a namespace holds. Use pinecone_namespaces_list to find namespace names. Runs against the index host saved on the connected account.
Inputs
namespacestringrequired- Name of the namespace. Use __default__ for the default namespace. Example: example-namespace
pinecone_namespaces_listList the namespaces in the Pinecone index on the connected account, optionally only those starting with a prefix.Read-onlyList Namespaces
List the namespaces in the Pinecone index on the connected account, optionally only those starting with a prefix. Returns each namespace's name and record count, the total count and a pagination token. Use this to find namespace names for the vector and record tools. Use pinecone_namespace_get for one namespace. Runs against the index host saved on the connected account.
Inputs
limitinteger- Maximum number of namespaces to return, from 1 to 100. Defaults to 100. Example: 50
pagination_tokenstring- Token for the next page of namespaces, taken from pagination.next in the previous response. Leave empty for the first page. Example: Tm90aGluZyB0byBzZWUgaGVyZQo=
prefixstring- Only return namespaces whose name starts with this text. Example: customer-
pinecone_records_searchSearch a namespace of an integrated-embedding Pinecone index with plain text, which Pinecone embeds with the index's model, and optionally rerank the hits.Read-onlySearch Records
Search a namespace of an integrated-embedding Pinecone index with plain text, which Pinecone embeds with the index's model, and optionally rerank the hits. Returns the hits with _id, _score and the requested fields, plus usage counts. Use this for indexes made with pinecone_index_create_for_model. Use pinecone_vectors_query when you supply your own query vector. Runs against the index host saved on the connected account.
Inputs
namespacestringrequired- Namespace to search. Use __default__ for the default namespace. Example: example-namespace
top_kintegerrequired- Number of hits to return, from 1 to 10000. Example: 10
fieldsarray- Record fields to return with each hit. All fields are returned when empty. Example: ["chunk_text", "category"]
filterobject- Metadata filter that limits the hits, written in Pinecone's filter language: a field name maps to a value or to an operator object such as $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin or $exists, and $and / $or combine conditions. Example: {"genre": {"$eq": "documentary"}, "year": {"$gte": 2020}}
idstring- ID of a record in the index whose vector is used as the query instead of text. Example: rec1
query_textstring- The search text, embedded with the index's model. Give query_text, query_vector or id. Example: Famous historical structures and monuments
query_vectorarray- A dense query vector to search with instead of text, matching the index dimension. Example: [0.1, 0.2, 0.3]
rerank_fieldsarray- With rerank_model: the record fields the reranker reads; every hit must contain them. Required when rerank_model is set. Example: ["chunk_text"]
rerank_modelstring- Hosted reranking model that reorders the hits by relevance, as listed by pinecone_models_list with type rerank. Leave empty to skip reranking. Example: bge-reranker-v2-m3
rerank_querystring- With rerank_model: text to rerank against instead of query_text. Required when searching by query_vector or id. Example: Which monuments are in Paris?
rerank_top_ninteger- With rerank_model: how many hits to keep after reranking. Defaults to top_k. Example: 5
pinecone_vector_ids_listList record IDs in a namespace of the Pinecone index on the connected account, optionally only those starting with a prefix.Read-onlyList Vector IDs
List record IDs in a namespace of the Pinecone index on the connected account, optionally only those starting with a prefix. Returns up to 100 IDs per page and a pagination token for the next page. Use this to discover IDs, for example all chunks of one document when IDs look like doc1#chunk1. Then use pinecone_vectors_fetch to read them. Serverless indexes only. Runs against the index host saved on the connected account.
Inputs
limitinteger- Maximum number of IDs to return, from 1 to 100. Defaults to 100. Example: 50
namespacestring- Namespace to list. Leave empty to use the index's default namespace. Namespaces are listed by pinecone_namespaces_list. Example: example-namespace
pagination_tokenstring- Token for the next page of IDs, taken from pagination.next in the previous response. Leave empty for the first page. Example: Tm90aGluZyB0byBzZWUgaGVyZQo=
prefixstring- Only return IDs that start with this text. Example: doc1#
pinecone_vectors_fetchFetch records by ID from a namespace of the Pinecone index on the connected account.Read-onlyFetch Vectors
Fetch records by ID from a namespace of the Pinecone index on the connected account. Returns a map of the found IDs to their vector values, sparse values and metadata; missing IDs are left out. Use this when you know the IDs. Use pinecone_vectors_fetch_by_metadata to select records by metadata and pinecone_vector_ids_list to discover IDs. Runs against the index host saved on the connected account.
Inputs
idsarrayrequired- IDs of the records to fetch, 1 to 1000. Example: ["doc1#chunk1", "doc1#chunk2"]
namespacestring- Namespace to read from. Leave empty to use the index's default namespace. Namespaces are listed by pinecone_namespaces_list. Example: example-namespace
pinecone_vectors_fetch_by_metadataFetch the records whose metadata matches a filter from a namespace of the Pinecone index on the connected account.Read-onlyFetch Vectors by Metadata
Fetch the records whose metadata matches a filter from a namespace of the Pinecone index on the connected account. Returns the matching records with their values and metadata, plus a pagination token when more remain. Use this to read every record with a given metadata value. Use pinecone_vectors_fetch for known IDs and pinecone_vectors_query for similarity search. Runs against the index host saved on the connected account.
Inputs
filterobjectrequired- Metadata filter that selects the records, written in Pinecone's filter language: a field name maps to a value or to an operator object such as $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin or $exists, and $and / $or combine conditions. Example: {"genre": {"$in": ["comedy", "drama"]}}
limitinteger- Maximum number of records to return in this page. Pinecone returns 100 when empty. Example: 50
namespacestring- Namespace to read from. Leave empty to use the index's default namespace. Namespaces are listed by pinecone_namespaces_list. Example: example-namespace
pagination_tokenstring- Token for the next page of records, taken from pagination.next in the previous response. Leave empty for the first page. Example: Tm90aGluZyB0byBzZWUgaGVyZQo=
pinecone_vectors_queryFind the records most similar to a query vector, or to an existing record's vector, in a namespace of the Pinecone index on the connected account.Read-onlyQuery Vectors
Find the records most similar to a query vector, or to an existing record's vector, in a namespace of the Pinecone index on the connected account. Returns the top matches with id, similarity score and, if requested, metadata and vector values. Use this for similarity search with your own embeddings. Use pinecone_records_search to search an integrated-embedding index with plain text, and pinecone_vectors_fetch to read records by ID. Runs against the index host saved on the connected account.
Inputs
top_kintegerrequired- Number of matches to return, from 1 to 10000. Example: 10
filterobject- Metadata filter that limits the matches, written in Pinecone's filter language: a field name maps to a value or to an operator object such as $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin or $exists, and $and / $or combine conditions. Example: {"genre": {"$eq": "documentary"}, "year": {"$gte": 2020}}
idstring- ID of a record already in the index whose vector is used as the query. Cannot be combined with vector or sparse_vector. Example: doc1#chunk1
include_metadataboolean- Set to true to return each match's metadata. Defaults to false. Example: true
include_valuesboolean- Set to true to return each match's vector values. Defaults to false; leave it off unless you need the vectors, as it slows the query. Example: false
namespacestring- Namespace to search. Leave empty to use the index's default namespace. Namespaces are listed by pinecone_namespaces_list. Example: example-namespace
sparse_vectorobject- Sparse query vector for sparse or hybrid search, as indices and values lists of equal length. Example: {"indices": [10, 45], "values": [0.5, 0.3]}
vectorarray- The dense query vector, a list of numbers with the same length as the index dimension. Give either vector (optionally with sparse_vector) or id, not both. Example: [0.1, 0.2, 0.3]
pinecone_documents_rerankReorder a list of documents by relevance to a query with a Pinecone-hosted reranking model.WriteRerank Documents
Reorder a list of documents by relevance to a query with a Pinecone-hosted reranking model. Returns the documents sorted by relevance score, each with its original index, score and (by default) the document itself, plus rerank usage. Use this to improve results you already have from any source. Use pinecone_records_search with rerank_model to search and rerank in one call. Uses Pinecone rerank units.
Inputs
documentsarrayrequired- The documents to rerank, each an object of string fields; by default the text field is ranked. Example: [{"id": "vec1", "text": "Paris is the capital of France."}, {"id": "vec2", "text": "Berlin is the capital of Germany."}]
modelstringrequired- Hosted reranking model, as listed by pinecone_models_list with type rerank. Example: bge-reranker-v2-m3
querystringrequired- The query to rank the documents against. Example: What is the capital of France?
parametersobject- Model-specific parameters such as truncate. Example: {"truncate": "END"}
rank_fieldsarray- Document fields the model reads when ranking. Defaults to ["text"]; how many fields are allowed depends on the model. Example: ["text"]
return_documentsboolean- Set to false to return only indexes and scores without the documents. Defaults to true. Example: false
top_ninteger- Number of top documents to return. Defaults to all documents. Example: 3
pinecone_embeddings_generateConvert text to vector embeddings with a Pinecone-hosted embedding model.WriteGenerate Embeddings
Convert text to vector embeddings with a Pinecone-hosted embedding model. Returns one embedding per input, in input order (dense values, or sparse indices and values), plus the model, vector type and token usage. Use this to embed text before pinecone_vectors_upsert or pinecone_vectors_query. Use pinecone_records_search to let an integrated-embedding index embed for you. Uses Pinecone inference tokens.
Inputs
modelstringrequired- Hosted embedding model, as listed by pinecone_models_list with type embed. Example: llama-text-embed-v2
textsarrayrequired- The texts to embed, one embedding per text. Example: ["Apple is a popular fruit known for its sweetness."]
input_typestring- Whether the texts are documents to store (passage) or search queries (query); most models need it. Example: passageone of
passagequery parametersobject- Other model-specific parameters, such as truncate (END or NONE) or dimension for models that support several. Example: {"truncate": "END"}
pinecone_index_configureChange settings of an existing Pinecone index: deletion protection, tags, read capacity, or replicas and pod type for a pod-based index.WriteConfigure Index
Change settings of an existing Pinecone index: deletion protection, tags, read capacity, or replicas and pod type for a pod-based index. Returns the updated index configuration. Use this to turn deletion protection off before pinecone_index_delete or to retag an index. Fields you leave empty keep their current value.
- Idempotent
Inputs
index_namestringrequired- Name of the Pinecone index to configure, as returned by pinecone_indexes_list. Example: docs-example
deletion_protectionstring- Whether deletion protection is on for the index. enabled blocks pinecone_index_delete until it is set back to disabled. Example: enabledone of
disabledenabled deploymentobject- Pod-based indexes only: new replicas count and or pod_type (s1, p1 or p2 with a size suffix x1, x2, x4 or x8). Cloud, region and deployment type cannot change. Example: {"replicas": 2, "pod_type": "p1.x2"}
read_capacityobject- Read capacity mode for the index. Use {"mode": "OnDemand"} (the default) for usage-based reads, or {"mode": "Dedicated", "dedicated": {...}} to allocate dedicated read nodes, giving the node type, scaling mode and manual replica and shard counts. Example: {"mode": "OnDemand"}
tagsobject- Custom tags for the index as an object of string keys and string values, at most 20. Keys are up to 80 characters (letters, digits, _ or -); values are up to 120 printable ASCII characters. Set a value to an empty string to remove that tag. Example: {"team": "search", "env": "prod"}
pinecone_index_createCreate a serverless Pinecone index from a schema of dense vector, sparse vector and text fields.WriteCreate Index
Create a serverless Pinecone index from a schema of dense vector, sparse vector and text fields. Returns the new index's name, host, status, deployment and schema; the index is usable once status.ready is true. Use this for a classic vector index whose vector field is named _values, which you then fill with pinecone_vectors_upsert. A full-text field, an embed field or a vector field under any other name makes a document index, which pinecone_vectors_upsert, pinecone_vectors_query and pinecone_records_search reject, and this connector has no document tool. Use pinecone_index_create_for_model for an index that embeds text with a hosted model and is searched with pinecone_records_search.
Inputs
schemaobjectrequired- The fields the index searches over, as an object with a fields map from field name to field configuration. For a classic vector index that works with the vector tools, declare the reserved _values field as a dense vector with its dimension and metric (cosine, dotproduct or euclidean). Other field types are sparse_vector and string (with full_text_search, embed or sparse_embed). Example: {"fields": {"_values": {"type": "dense_vector", "dimension": 1536, "metric": "cosine"}}}
deletion_protectionstring- Whether deletion protection is on for the index. enabled blocks pinecone_index_delete until it is set back to disabled. Example: enabledone of
disabledenabled deploymentobject- Where the index runs. For a serverless index give deployment_type managed with a cloud (aws, gcp or azure) and a region. Defaults to managed on aws us-east-1 when empty. Example: {"deployment_type": "managed", "cloud": "aws", "region": "us-east-1"}
namestring- Name for the new index, unique in the project: 1 to 45 lowercase letters, digits or hyphens, starting and ending with a letter or digit. Pinecone generates one if left empty. Example: docs-example
read_capacityobject- Read capacity mode for the index. Use {"mode": "OnDemand"} (the default) for usage-based reads, or {"mode": "Dedicated", "dedicated": {...}} to allocate dedicated read nodes, giving the node type, scaling mode and manual replica and shard counts. Example: {"mode": "OnDemand"}
tagsobject- Custom tags for the index as an object of string keys and string values, at most 20. Keys are up to 80 characters (letters, digits, _ or -); values are up to 120 printable ASCII characters. Set a value to an empty string to remove that tag. Example: {"team": "search", "env": "prod"}
pinecone_index_create_for_modelCreate a serverless Pinecone index with integrated embedding, so Pinecone converts a text field to vectors with a hosted model.WriteCreate Index for Embedding Model
Create a serverless Pinecone index with integrated embedding, so Pinecone converts a text field to vectors with a hosted model. Returns the new index's name, host, status, embedding settings and deletion protection; the index is usable once status.ready is true. Use this when you want to search with plain text through pinecone_records_search. Use pinecone_index_create for an index you fill with your own vectors.
Inputs
cloudstringrequired- Public cloud that hosts the index: aws, gcp or azure. Example: awsone of
awsgcpazure field_mapobjectrequired- Which field of your records holds the text to embed, as an object whose text key names that field. Cannot be changed later. Example: {"text": "chunk_text"}
modelstringrequired- Name of the hosted embedding model that embeds the text field, as listed by pinecone_models_list with type embed. Cannot be changed later. Example: llama-text-embed-v2
namestringrequired- Name for the new index, unique in the project: 1 to 45 lowercase letters, digits or hyphens, starting and ending with a letter or digit. Example: docs-example
regionstringrequired- Cloud region for the index, which must be a region Pinecone supports for that cloud. Example: us-east-1
deletion_protectionstring- Whether deletion protection is on for the index. enabled blocks pinecone_index_delete until it is set back to disabled. Example: enabledone of
disabledenabled dimensioninteger- Dimension of the vectors the model produces, for models that support more than one. Defaults to the model's default dimension when empty. Example: 1024
metricstring- Distance metric for similarity search: cosine, euclidean or dotproduct. Defaults to the model's own metric when empty. Example: cosineone of
cosineeuclideandotproduct tagsobject- Custom tags for the index as an object of string keys and string values, at most 20. Keys are up to 80 characters (letters, digits, _ or -); values are up to 120 printable ASCII characters. Set a value to an empty string to remove that tag. Example: {"team": "search", "env": "prod"}
pinecone_vector_updateUpdate one record by ID, or the metadata of every record matching a filter, in a namespace of the Pinecone index on the connected account.WriteUpdate Vector
Update one record by ID, or the metadata of every record matching a filter, in a namespace of the Pinecone index on the connected account. Returns matchedRecords, the number of records the update applied to (or would apply to on a dry run). Use this to replace a record's values or merge new metadata fields without rewriting it. Use pinecone_vectors_upsert to write whole records. Runs against the index host saved on the connected account.
- Idempotent
Inputs
dry_runboolean- With a filter, set to true to only count the records that match without updating them. Defaults to false. Example: true
filterobject- Metadata filter that limits which records get set_metadata, instead of a single id, written in Pinecone's filter language: a field name maps to a value or to an operator object such as $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin or $exists, and $and / $or combine conditions. Example: {"genre": {"$eq": "documentary"}, "year": {"$gte": 2020}}
idstring- ID of the record to update. Give either id or filter. Example: doc1#chunk1
namespacestring- Namespace that holds the record. Leave empty to use the index's default namespace. Namespaces are listed by pinecone_namespaces_list. Example: example-namespace
set_metadataobject- Metadata fields to set; they are merged into the existing metadata, overwriting fields with the same name. Field names cannot start with $. Example: {"genre": "comedy", "year": 2024}
sparse_valuesobject- New sparse vector for the record given by id, as indices and values lists of equal length. Example: {"indices": [10, 45], "values": [0.5, 0.3]}
valuesarray- New dense vector values for the record given by id, matching the index dimension. Example: [0.1, 0.2, 0.3]
pinecone_vectors_upsertWrite vectors to a namespace of the Pinecone index on the connected account, replacing any record with the same ID.WriteUpsert Vectors
Write vectors to a namespace of the Pinecone index on the connected account, replacing any record with the same ID. Returns upsertedCount, the number of vectors written. Use this when you already have embeddings, for example from pinecone_embeddings_generate. Use pinecone_vector_update to change one field of an existing record. Runs against the index host saved on the connected account.
Inputs
vectorsarrayrequired- The vectors to write, up to 1000 per call. Each needs a unique id and either dense values (a list of numbers matching the index dimension) or sparseValues (indices and values lists of equal length), and may carry a metadata object of filterable fields. Example: [{"id": "doc1#chunk1", "values": [0.1, 0.2, 0.3], "metadata": {"genre": "documentary"}}]
namespacestring- Namespace to write to. Leave empty to use the index's default namespace. Namespaces are listed by pinecone_namespaces_list. Example: example-namespace
pinecone_index_deletePermanently delete a Pinecone index and every record in it.DestructiveDelete Index
Permanently delete a Pinecone index and every record in it. Returns an empty response once Pinecone accepts the request; deletion finishes in the background. Fails while deletion protection is enabled; turn it off first with pinecone_index_configure. Use pinecone_namespace_delete or pinecone_vectors_delete to remove only some data.
- Idempotent
Inputs
index_namestringrequired- Name of the Pinecone index to delete, as returned by pinecone_indexes_list. Example: docs-example
pinecone_namespace_deletePermanently delete a namespace and every record in it from the Pinecone index on the connected account.DestructiveDelete Namespace
Permanently delete a namespace and every record in it from the Pinecone index on the connected account. Returns an empty object on success. Use this to drop all of one tenant's or dataset's data at once. Use pinecone_vectors_delete to remove only some records. Runs against the index host saved on the connected account.
- Idempotent
Inputs
namespacestringrequired- Name of the namespace to delete. Example: example-namespace
pinecone_vectors_deleteDelete records from a namespace of the Pinecone index on the connected account, by ID, by metadata filter, or all of them.DestructiveDelete Vectors
Delete records from a namespace of the Pinecone index on the connected account, by ID, by metadata filter, or all of them. Returns an empty object on success. Use this to remove specific records. Use pinecone_namespace_delete to drop a whole namespace and pinecone_index_delete to drop the index. Runs against the index host saved on the connected account.
- Idempotent
Inputs
delete_allboolean- Set to true to delete every record in the namespace. Cannot be combined with ids or filter. Example: true
filterobject- Metadata filter that limits which records are deleted, written in Pinecone's filter language: a field name maps to a value or to an operator object such as $eq, $ne, $gt, $gte, $lt, $lte, $in, $nin or $exists, and $and / $or combine conditions. Example: {"genre": {"$eq": "documentary"}, "year": {"$gte": 2020}}
idsarray- IDs of the records to delete, up to 1000. Give exactly one of ids, filter or delete_all. Example: ["doc1#chunk1", "doc1#chunk2"]
namespacestring- Namespace to delete from. Leave empty to use the index's default namespace. Namespaces are listed by pinecone_namespaces_list. Example: example-namespace
No tools match.