Inserts or updates vectors in an index. If a vector with the same ID exists, it will be overwritten.
Examples
if (FALSE) { # \dontrun{
# Upsert a single vector
vector_upsert("my-index", vectors = list(
list(id = "vec1", values = rep(0.1, 1536), metadata = list(category = "A"))
))
# Upsert multiple vectors
vector_upsert("my-index", vectors = list(
list(id = "vec1", values = rep(0.1, 1536)),
list(id = "vec2", values = rep(0.2, 1536))
))
} # }