UpsertPinecone 2025.10.9.21

Bundle

com.snowflake.openflow.runtime | runtime-pinecone-nar

Description

Publishes vectors, including metadata, and optionally text, to a Pinecone index.

Tags

chatbot, embeddings, gen ai, genai, generative ai, llm, metadata, openflow, pinecone, publish, text, upsert, vector

Input Requirement

REQUIRED

Supports Sensitive Dynamic Properties

false

Properties

PropertyDescription
ID Record PathThe path to the ID field in the record
Max Batch SizeIf the number of Records in a FlowFile is large, creating a single request to Pinecone can consume significant amounts of NiFi heap. In order to avoid this, the Max Batch Size can limit the number of Records to send in a single request. If the number of Records exceeds this value, multiple requests will be sent to Pinecone.
Metadata Record PathThe path to the metadata field in the record
Pinecone API KeyThe API key for the Pinecone service
Pinecone IndexThe name of the Pinecone index to use
Pinecone NamespaceThe name of the Pinecone namespace to use
Record ReaderThe Record Reader to use for reading the FlowFile
Sparse Vector Indices PathIf, Sparse Vectors are to be provided, this RecordPath points to the indices of the sparse data to use.
Sparse Vector Values PathIf, Sparse Vectors are to be provided, this RecordPath points to the values of the sparse data to use.
Text Field NameThe name of the field in the metadata to use for storing the text associated with the vectors.
Text Record PathThe path to the field in the record that contains the text associated with the vectors. If specified, the text will be inserted into the metadata when publishing to Pinecone. If not specified, the text will not be sent to Pinecone.
Vector Record PathThe path to the vector field in the record
Web Client ServiceThe Web Client Service to use for communicating with Pinecone

Relationships

NameDescription
failureFlowFiles that cannot be sent to Pinecone, and for which a retry is not expected to be successful, are routed to this relationship
retryFlowFiles that fail to be sent to Pinecone, but for which a retry may help, are routed to this relationship
successFlowFiles that are successfully sent to Pinecone are routed to this relationship

Use Cases Involving Other Components

Create embeddings for raw text data, or text that exists in a Record field such as JSON, using OpenAI’s embeddings model and publish the vectors to Pinecone.
Add embeddings for a document to a Pinecone index, replacing any embeddings that already exist for the document.

See also