Upsert Records
Pinecone
Pinecone
Upsert Records
Insert or update text-based records in a Pinecone namespace. Each record has _id and chunk_text (embedded by Pinecone); other fields are stored as metadata. Requires an index with integrated embedding.
ActionAI Tool
Inputs
| Name | Type | Required | Description |
|---|---|---|---|
namespace | text | Required | Namespace to upsert into (required). |
records | array of object | Required | Array of records. Each has _id (string), chunk_text (string), and optional metadata (string: stringified JSON or plain text). |
_id | text | Required | Unique record ID |
chunk_text | text | Required | Text to embed (Pinecone embeds this server-side) |
metadata | text | Optional | Optional metadata as stringified JSON or plain text. Pinecone accepts string, number, boolean or list of strings per field. |
Outputs
| Name | Type | Description |
|---|---|---|
statusCode | number | HTTP status code (200 on success) |