await index.upsert({ id: "1234", vector: [0.1, 0.2, 0.3, 0.4, 0.5], metadata: { title: "Lord of The Rings", genre: "drama", category: "classic", }, });
Used to add new vectors or update an existing vector.
You can only upsert vectors with same dimension count(size) as your index.
Hide child attributes
The ID of the vector
The embedding data
The metadata of the vector. This is used to make it easier to identify the vector on queries.
'Success' on successful operation.
'Success'
Was this page helpful?