Pinecone Query

Pinecone Query

Certified

Query a Pinecone index by vector similarity

Queries a Pinecone index for the top-K most similar vectors. Provide either a vector (dense values) or a vectorId (query by existing vector ID). Exactly one of these two must be set. Results can be returned inline (FETCH / FETCH_ONE) or stored as an ION file (STORE).

yaml
type: io.kestra.plugin.pinecone.Query

Query top-5 vectors by a dense vector.

yaml
id: pinecone_query
namespace: company.team

tasks:
  - id: query
    type: io.kestra.plugin.pinecone.Query
    apiKey: "{{ secret('PINECONE_API_KEY') }}"
    indexName: my-embeddings
    namespace: my-namespace
    topK: 5
    vector: [0.1, 0.2, 0.3]
    includeMetadata: true
    fetchType: FETCH

Query and store results to Kestra internal storage.

yaml
id: pinecone_query_store
namespace: company.team

tasks:
  - id: query
    type: io.kestra.plugin.pinecone.Query
    apiKey: "{{ secret('PINECONE_API_KEY') }}"
    indexName: my-embeddings
    topK: 100
    vector: [0.1, 0.2, 0.3]
    fetchType: STORE
Properties

Pinecone API key

Index name

Name of the Pinecone index to operate on.

Number of results to return

Assets this task consumes as inputs or produces as outputs, for lineage tracking and the asset graph (Enterprise Edition). A flow declaring this property on a task is rejected in the open-source edition.

Definitions
assetFailureBehaviorstring
Possible Values
IGNOREFAILWARN

Asset failure behavior

Behavior applied to the task state when a declared asset fails to render, emit, or be persisted (e.g. a lock conflict): FAIL escalates it to FAILED, WARN (default) warns it if it would otherwise succeed, IGNORE leaves the state untouched.

enableAutobooleanstring

Whether to auto-register assets referenced dynamically at runtime that are not statically declared in inputs or outputs.

inputsarray

The assets consumed as inputs.

id*string
Min length1
typestring
outputs

The assets produced as outputs.

id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*object
descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
id*string
Min length1
Max length150
type*string
Min length1

Custom asset type

descriptionstring
displayNamestring
metadataobject
Default{}
namespacestring
Min length1
Max length150
DefaultFETCH
Possible Values
FETCHFETCH_ONESTORE

Fetch type

Controls how results are returned. FETCH returns all rows inline, FETCH_ONE returns only the first row, STORE writes all rows to Kestra storage as an ION file.

Metadata filter

Optional filter map applied to restrict matches by metadata fields.

Control-plane host override

Optional URL override for the Pinecone control-plane API. Defaults to https://api.pinecone.io when unset. Set this to point to a local emulator (e.g. http://localhost: 5080).

Defaultfalse

Include metadata in the response

Defaultfalse

Include vector values in the response

Namespace to query

Defaulttrue

Enable TLS for gRPC data-plane connections

Set to false when connecting to a local emulator that does not support TLS. Defaults to true (production Pinecone always requires TLS).

SubTypenumber

Query vector (dense values)

Mutually exclusive with vectorId.

ID of an existing vector to use as the query

Mutually exclusive with vector.

Single result row (FETCH_ONE mode)

SubTypeobject

All result rows (FETCH mode)

Number of matches returned

Formaturi

URI of the ION file containing all rows (STORE mode)