
Pinecone Query
CertifiedQuery a Pinecone index by vector similarity
Pinecone Query
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).
type: io.kestra.plugin.pinecone.QueryExamples
Query top-5 vectors by a dense vector.
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.
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
apiKey *Requiredstring
Pinecone API key
indexName *Requiredstring
Index name
Name of the Pinecone index to operate on.
topK *Requiredintegerstring
Number of results to return
fetchType string
FETCHFETCHFETCH_ONESTOREFetch 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.
filter object
Metadata filter
Optional filter map applied to restrict matches by metadata fields.
host string
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).
includeMetadata booleanstring
falseInclude metadata in the response
includeValues booleanstring
falseInclude vector values in the response
namespace string
Namespace to query
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
tlsEnabled booleanstring
trueEnable 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).
vector array
Query vector (dense values)
Mutually exclusive with vectorId.
vectorId string
ID of an existing vector to use as the query
Mutually exclusive with vector.
Outputs
row object
Single result row (FETCH_ONE mode)
rows array
All result rows (FETCH mode)
size integer
Number of matches returned
uri string
uriURI of the ION file containing all rows (STORE mode)