Upsert Data
We’ll use theupsertData()
method to instruct the SDK to upsert data that generates vectors from one of our embedding models, as demonstrated below:
Upsert Data Many
Building on the previous section, Upstash Vector also supports generating multiple vectors at once. To do this, we’ll use theupsertDataMany()
method, which enables you to efficiently insert or update multiple vectors in an index, as shown below:
For optimal results, we recommend limiting each batch to no more than 1,000 records at a time.