id, then it will be overwritten.
Parameters
contents and json_metadata_array are required positional arguments. Pass an empty initializer {} when an item has no contents or metadata. When provided, their length must match ids.Exceptions
std::invalid_argument
std::invalid_argument
- Throws if vector dimensions are incompatible with the index configuration.
- Throws if index was not created or loaded yet.
- Throws if there is a mismatch between the number of
vectors,ids,contentsorjson_metadata_array.
std::runtime_error
std::runtime_error
- Throws if the vectors could not be upserted.
- Throws if the supplied key context lacks write permission.