Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pinecone

connector.pinecone · ai, database

Upsert, query, fetch and delete vectors in Pinecone indexes, search integrated-embedding indexes, and embed or rerank with Pinecone Inference.

Vendor API documentation: https://docs.pinecone.io/reference/api/introduction

Authentication

MethodCredential kindAuth kindFieldsTest request
API keypinecone/api_keyapi_keyapi_key (secret)yes

Actions

Node type connector.pinecone. Choose a resource and an operation; each operation has its own parameters.

Vector

OperationIDEffectPaginatedCassette tests
Upsert vectorsvector.upsertwrites3
Queryvector.queryreads2
Fetch by IDvector.fetchreads1
Fetch by metadatavector.fetch_by_metadatareadsyes1
Updatevector.updatewrites2
Deletevector.deletewrites2
List record IDsvector.list_idsreadsyes1

Upsert vectors

Operation vector.upsert. Writes one record per input item, or a batch from a JSON array. Existing ids are overwritten.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator""Empty for the default namespace. Depends on index_host. Values from lookup namespaces.
modeoptions"single"Input. One of single, batch.
idstringyesmode = singleID.
valuesjsonmode = singleDense vector as a JSON array of numbers.
sparse_valuesjsonmode = single{indices: […], values: […]}.
metadatajsonmode = single
vectorsjsonyesmode = batchRecords. Up to 1000 {id, values, sparseValues, metadata} objects (2 MB max).

Query

Operation vector.query. Nearest-neighbour search by vector or by the vector of an existing record. One item per match.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator""Empty for the default namespace. Depends on index_host. Values from lookup namespaces.
top_knumber10yesTop K.
query_byoptions"vector"One of vector, id.
vectorjsonyesquery_by = vector
sparse_vectorjsonquery_by = vector{indices, values} for hybrid or sparse indexes.
idstringyesquery_by = idRecord ID.
filterjsonMetadata filter.
include_metadatabooleantrue
include_valuesbooleanfalse

Fetch by ID

Operation vector.fetch.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator""Empty for the default namespace. Depends on index_host. Values from lookup namespaces.
idsstringyesIDs. Comma-separated record ids (up to 1000).

Fetch by metadata

Operation vector.fetch_by_metadata.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator""Empty for the default namespace. Depends on index_host. Values from lookup namespaces.
filterjsonyesMetadata filter.
return_allbooleanfalse
limitnumber50return_all = false

Update

Operation vector.update. Update one record by id, or set metadata on every record matching a filter.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator""Empty for the default namespace. Depends on index_host. Values from lookup namespaces.
targetoptions"id"Update. One of id, filter.
idstringyestarget = idID.
valuesjsontarget = idNew values.
sparse_valuesjsontarget = idNew sparse values.
filterjsonyestarget = filterMetadata filter.
set_metadatajsonFields to add or overwrite.
dry_runbooleanfalsetarget = filterDry run (count matches only).

Delete

Operation vector.delete.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator""Empty for the default namespace. Depends on index_host. Values from lookup namespaces.
targetoptions"ids"Delete. One of ids, filter, all.
idsstringyestarget = idsIDs. Comma-separated (up to 1000).
filterjsonyestarget = filterMetadata filter.

List record IDs

Operation vector.list_ids. Serverless indexes only. One item per id.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator""Empty for the default namespace. Depends on index_host. Values from lookup namespaces.
prefixstringID prefix.
return_allbooleanfalse
limitnumber100return_all = false

Record (integrated embedding)

OperationIDEffectPaginatedCassette tests
Search with textrecord.searchreads1

Search with text

Operation record.search. Semantic search on an index with integrated embedding; Pinecone embeds the query text. One item per hit.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locator"__default__"yesDepends on index_host. Values from lookup namespaces.
textstringyesQuery text.
top_knumber10yesTop K.
filterjsonMetadata filter.
fieldsstringFields to return. Comma-separated; empty returns all.
rerank_modelresource_locatorRerank with model. Values from lookup rerank_models.
rank_fieldsstring"text"Rerank fields. Comma-separated record fields the reranker reads.
rerank_top_nnumberRerank top N.

Index

OperationIDEffectPaginatedCassette tests
Get index statisticsindex.describe_statsreads1
List indexesindex.listreads1
Describe an indexindex.describereads2

Get index statistics

Operation index.describe_stats.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
filterjsonMetadata filter. Pod-based indexes only.

List indexes

Operation index.list.

This node has no parameters.

Describe an index

Operation index.describe.

NameTypeDefaultRequiredShown whenDescription
index_nameresource_locatoryesIndex. Values from lookup index_names.

Namespace

OperationIDEffectPaginatedCassette tests
List namespacesnamespace.listreadsyes1
Describe a namespacenamespace.describereads1
Delete a namespacenamespace.deletewrites1

List namespaces

Operation namespace.list.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
prefixstringName prefix.
return_allbooleanfalse
limitnumber100return_all = false

Describe a namespace

Operation namespace.describe.

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locatoryesDepends on index_host. Values from lookup namespaces.

Delete a namespace

Operation namespace.delete. Permanently deletes the namespace and all its records (serverless indexes).

NameTypeDefaultRequiredShown whenDescription
index_hostresource_locatoryesIndex. The index host (select an index or paste its host). Values from lookup indexes.
namespaceresource_locatoryesDepends on index_host. Values from lookup namespaces.

Inference

Hosted embedding and reranking models.

OperationIDEffectPaginatedCassette tests
Create embeddingsinference.embedreads2
Rerank documentsinference.rerankreads1

Create embeddings

Operation inference.embed.

NameTypeDefaultRequiredShown whenDescription
modelresource_locator"llama-text-embed-v2"yesValues from lookup embed_models.
input_typeoptions"passage"One of passage, query.
input_modeoptions"single"Input. One of single, batch.
textstringyesinput_mode = single
inputsjsonyesinput_mode = batchJSON array of {“text”: “…”} objects (up to the model’s batch size).
dimensionnumberFor models with selectable dimensions.
truncateoptions"END"One of END, NONE.

Rerank documents

Operation inference.rerank.

NameTypeDefaultRequiredShown whenDescription
modelresource_locator"bge-reranker-v2-m3"yesValues from lookup rerank_models.
querystringyes
documentsjsonyesJSON array of strings, or of objects with the fields to rank on.
rank_fieldsstring"text"Comma-separated (objects only).
top_nnumberTop N.
return_documentsbooleantrue

Lookups

Lookups fill dropdowns and resource pickers in the editor from the vendor API.

LookupDepends onSearchDescription
indexesclient-side{{ item.spec.serverless.cloud ~ ’ ’ ~ item.spec.serverless.region if item.spec.serverless else (item.deployment.deployment_type or ‘’) }}
index_namesclient-side
namespacesindex_hostclient-side
embed_modelsclient-side{{ item.short_description }}
rerank_modelsclient-side{{ item.short_description }}

Import

No exported node type imports to this node.

Provenance

Written from the vendor’s documentation: