POST
/
update
/
{namespace}

The vector will be updated int the default namespace by default. You can use a different namespace by specifying it in the request path.

Request

You can update a vector value, data, or metadata; or any combination of those.

id
string
required

The id of the vector.

vector
number[]

The vector value to update to.

The vector should have the same dimensions as your index.

data
string

The raw text data to update to.

If the index is created with an embedding model this will embed the data into a vector and will also update the vector, along with data.

metadata
Object

The metadata to update to.

metadataUpdateMode
string

Whether to overwrite the whole metadata while updating it, or patch the metadata (insert new fields or update or delete existing fields) according to the RFC 7396 JSON Merge Patch algorithm.

OVERWRITE for overwrite, PATCH for patch.

Path

namespace
string
default: ""

The namespace to use. When no namespace is specified, the default namespace will be used.

Response

updated
number

1 if any vector is updated, 0 otherwise.