Skip to content

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
namespacetextRequiredNamespace to upsert into (required).
recordsarray of objectRequiredArray of records. Each has _id (string), chunk_text (string), and optional metadata (string: stringified JSON or plain text).
_idtextRequiredUnique record ID
chunk_texttextRequiredText to embed (Pinecone embeds this server-side)
metadatatextOptionalOptional metadata as stringified JSON or plain text. Pinecone accepts string, number, boolean or list of strings per field.

Outputs

Name Type Description
statusCodenumberHTTP status code (200 on success)