Upstash Documentation

Upsert

1 min read

Methods#

The upsert method enables you to insert or update vectors in the index. You can perform upsert operations in three ways: using a vector object, a tuple, or a dictionary.

Upsert Via Vector Object#

Upsert Via Tuple#

Upsert Via Dictionary#

Also, you can specify a namespace to operate on. When no namespace is provided, the default namespace will be used.