Skip to content
masterclass Buddy

Upstash · Method

index.upsertData

Use upsertData to store text and let Upstash create its embedding. Use upsertDataMany for several records, and chain namespace to target a named namespace.

Last updated

Syntax

$index->upsertData(new DataUpsert(id: '1', data: 'text'));

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • Upsert Data
  • Upsert Data Many
  • Metadata and Data
  • Namespaces

Source: Upserting Data with Embedding Models - Upstash Documentation. Checked 2026-11-03.