Pinecone

The Pinecone component is a data component that allows users to build and search vector datasets. It can carry out the following tasks:

#Release Stage

Alpha

#Configuration

The component definition and tasks are defined in the definition.json and tasks.json files respectively.

#Setup

In order to communicate with Pinecone, the following connection details need to be provided. You may specify them directly in a pipeline recipe as key-value pairs within the component's setup block, or you can create a Connection from the Integration Settings page and reference the whole setup as setup: ${connection.<my-connection-id>}.

FieldField IDTypeNote
API Key (required)api-keystringFill in your Pinecone AI API key. You can create an api key in Pinecone Console
Pinecone Base URL (required)urlstringFill in your Pinecone base URL. It is in the form

#Supported Tasks

#Query

Retrieve the ids of the most similar items in a namespace, along with their similarity scores.

InputIDTypeDescription
Task ID (required)taskstringTASK_QUERY
IDidstringThe unique ID of the vector to be used as a query vector. If present, the vector parameter will be ignored.
Vector (required)vectorarray[number]An array of dimensions for the query vector.
Top K (required)top-kintegerThe number of results to return for each query
NamespacenamespacestringThe namespace to query
FilterfilterobjectThe filter to apply. You can use vector metadata to limit your search. See more details here.
Minimum Scoremin-scorenumberExclude results whose score is below this value
Include Metadatainclude-metadatabooleanIndicates whether metadata is included in the response as well as the IDs
Include Valuesinclude-valuesbooleanIndicates whether vector values are included in the response
OutputIDTypeDescription
NamespacenamespacestringThe namespace of the query
Matchesmatchesarray[object]The matches returned for the query
Output Objects in Query

Matches

FieldField IDTypeNote
IDidstringThe ID of the matched vector
MetadatametadataobjectMetadata
ScorescorenumberA measure of similarity between this vector and the query vector. The higher the score, the more similar they are.
ValuesvaluesarrayVector data values

#Upsert

Writes vectors into a namespace. If a new value is upserted for an existing vector id, it will overwrite the previous value.

InputIDTypeDescription
Task ID (required)taskstringTASK_UPSERT
ID (required)idstringThis is the vector's unique id
Values (required)valuesarray[number]An array of dimensions for the vector to be saved
NamespacenamespacestringThe namespace to query
MetadatametadataobjectThe vector metadata
OutputIDTypeDescription
Upserted Countupserted-countintegerNumber of records modified or added