Updates a vector's values or metadata.
Usage
vector_update(
index,
vector_id,
values = NULL,
meta_data = NULL,
name_space = ""
)
Arguments
- index
Name of the index
- vector_id
ID of the vector to update
- values
New vector values (numeric vector, optional)
- meta_data
New metadata (list, optional)
- name_space
Namespace of the vector (default: "")
Value
List with http response, content, and status_code
Examples
if (FALSE) { # \dontrun{
# Update metadata only
vector_update("my-index", vector_id = "vec1", meta_data = list(category = "new"))
# Update values and metadata
vector_update("my-index", vector_id = "vec1", values = rep(0.1, 1536),
meta_data = list(category = "new"))
} # }