Pinecone

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

#Release Stage

Alpha

#Configuration

The component configuration is defined and maintained here.

#Connection

FieldField IDTypeNote
API Key (required)api_keystringFill your Pinecone AI API key. You can create a api key in Pinecone Console
Pinecone Base URL (required)urlstringFill in your Pinecone base URL. It is in the form [https://index_name-project_id.svc.environment.pinecone.io]

#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 https://www.pinecone.io/docs/metadata-filtering/.
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

#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

Last updated: 5/16/2024, 9:38:32 PM