Use Pinecone in Sim to generate embeddings, store and update text records or vectors, search by text or vector, retrieve vectors, and manage indexes. Use the returned matches as input to later workflow steps.
Generate embeddings, upsert and update text records, delete vectors, search with text or vectors, fetch and list vectors, inspect index statistics, and manage indexes.
Generate embeddings from text using Pinecone's hosted models
Inputs and outputsParameter Type Required Description modelstring Yes Model to use for generating embeddings inputsarray Yes Array of text inputs to generate embeddings for apiKeystring Yes Pinecone API key
Parameter Type Description dataarray Generated embeddings data with values and vector type modelstring Model used for generating embeddings vector_typestring Type of vector generated (dense/sparse) usageobject Usage statistics for embeddings generation
Insert or update text records in a Pinecone index
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") namespacestring Yes Namespace to upsert records into (e.g., "documents", "embeddings") recordsarray Yes Record or array of records to upsert, each containing _id, text, and optional metadata apiKeystring Yes Pinecone API key
Parameter Type Description statusTextstring Status of the upsert operation
Update the values, sparse values, or metadata of a vector in a Pinecone namespace
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") idstring Yes Unique ID of the vector to update namespacestring No Namespace containing the vector (e.g., "documents", "embeddings") valuesarray No New dense vector values to overwrite the existing values sparseValuesobject No New sparse vector values with indices and values arrays setMetadataobject No Metadata key-value pairs to add or overwrite on the vector apiKeystring Yes Pinecone API key
Parameter Type Description statusTextstring Status of the update operation
Delete vectors from a Pinecone namespace by IDs, by metadata filter, or delete all
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") namespacestring No Namespace to delete vectors from (e.g., "documents", "embeddings") idsarray No Vector IDs to delete (1-1000 items). Mutually exclusive with deleteAll and filter deleteAllboolean No Delete all vectors in the namespace. Mutually exclusive with ids and filter filterobject No Metadata filter selecting vectors to delete (e.g., {"category": {"$eq": "product"}}). Mutually exclusive with ids and deleteAll apiKeystring Yes Pinecone API key
Parameter Type Description statusTextstring Status of the delete operation
Search for similar text in a Pinecone index
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") namespacestring No Namespace to search in (e.g., "documents", "embeddings") searchQuerystring Yes Text to search for topKstring No Number of results to return (e.g., "10", "25") fieldsarray No Fields to return in the results filterobject No Filter to apply to the search (e.g., {"category": "tech", "year": {"$gte": 2020}}) rerankobject No Reranking parameters apiKeystring Yes Pinecone API key
Parameter Type Description matchesarray Search results with ID, score, and metadata ↳ id string Vector ID ↳ score number Similarity score ↳ metadata object Associated metadata usageobject Usage statistics including tokens, read units, and rerank units ↳ total_tokens number Total tokens used for embedding ↳ read_units number Read units consumed ↳ rerank_units number Rerank units used
Search for similar vectors in a Pinecone index
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") namespacestring No Namespace to search in (e.g., "documents", "embeddings") vectorarray Yes Vector to search for topKnumber No Number of results to return (e.g., 10, 25) filterobject No Filter to apply to the search (e.g., {"category": "tech", "year": {"$gte": 2020}}) includeValuesboolean No Include vector values in response includeMetadataboolean No Include metadata in response (true/false) apiKeystring Yes Pinecone API key
Parameter Type Description matchesarray Vector search results with ID, score, values, and metadata namespacestring Namespace where the search was performed
Fetch vectors by ID from a Pinecone index
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") idsarray Yes Array of vector IDs to fetch (e.g., ["vec-001", "vec-002"]) namespacestring No Namespace to fetch vectors from (e.g., "documents", "embeddings") apiKeystring Yes Pinecone API key
Parameter Type Description matchesarray Fetched vectors with ID, values, metadata, and score ↳ id string Vector ID ↳ values array Vector values ↳ metadata object Associated metadata ↳ score number Fixed score of 1.0 assigned by this fetch operation; not a similarity-query score dataarray Vector data with values and vector type ↳ values array Vector values ↳ vector_type string Vector type (dense/sparse) usageobject Usage statistics including total read units ↳ total_tokens number Read units consumed
List vector IDs in a Pinecone namespace by prefix (serverless indexes only)
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") namespacestring Yes Namespace to list vector IDs from (e.g., "documents", "embeddings") prefixstring No Filter vector IDs by a common prefix (e.g., "doc1#") limitnumber No Maximum number of IDs to return per page (default 100) paginationTokenstring No Pagination token from a previous response to fetch the next page apiKeystring Yes Pinecone API key
Parameter Type Description vectorIdsarray Vector IDs in the namespace paginationobject Pagination info with a next token when more results exist ↳ next string Token to fetch the next page namespacestring Namespace the IDs were listed from usageobject Usage statistics including read units ↳ total_tokens number Read units consumed
Get statistics about a Pinecone index, including per-namespace vector counts
Inputs and outputsParameter Type Required Description indexHoststring Yes Full Pinecone index host URL (e.g., "https://my-index-abc123.svc.pinecone.io ") filterobject No Metadata filter to limit which vectors are counted (pod-based indexes only, e.g., {"category": {"$eq": "product"}}) apiKeystring Yes Pinecone API key
Parameter Type Description namespacesjson Map of namespace name to its summary including vectorCount dimensionnumber Dimensionality of the indexed vectors indexFullnessnumber Fullness of the index (pod-based indexes only) totalVectorCountnumber Total number of vectors across all namespaces
List all Pinecone indexes in the project
Inputs and outputsParameter Type Required Description apiKeystring Yes Pinecone API key
Parameter Type Description indexesarray List of indexes with name, dimension, metric, host, spec, and status ↳ name string Index name ↳ dimension number Vector dimensionality ↳ metric string Distance metric (cosine, euclidean, dotproduct) ↳ host string Index host URL for data-plane operations ↳ vectorType string Vector type (dense or sparse) ↳ deletionProtection string Deletion protection (enabled or disabled) ↳ tags object Custom user tags on the index ↳ spec object Index spec (serverless or pod configuration) ↳ status object Index status with ready and state
Get the configuration and status of a Pinecone index by name
Inputs and outputsParameter Type Required Description indexNamestring Yes Name of the index to describe apiKeystring Yes Pinecone API key
Parameter Type Description indexobject Index configuration and status ↳ name string Index name ↳ dimension number Vector dimensionality ↳ metric string Distance metric (cosine, euclidean, dotproduct) ↳ host string Index host URL for data-plane operations ↳ vectorType string Vector type (dense or sparse) ↳ deletionProtection string Deletion protection (enabled or disabled) ↳ tags object Custom user tags on the index ↳ spec object Index spec (serverless or pod configuration) ↳ status object Index status with ready and state