Used to retrieve the vector by ID.
Arguments
IDs
string[] | number[]
required
The IDs of the vectors you want to fetch.
Whether to include the metadata of the vectors in the response. Setting
this true
would be the best practice, since it will make it easier to
identify the vectors.
The metadata of the vector. This is used to make it easier to identify the
vector on queries.
Response
This field is null
if no vector with the specified id is found. The ID of the resulting vector.
The metadata of the vector. This is used to make it easier to identify the
vector on queries.
const responseDelete = await index . fetch ([ "2" , "3" ], {});
// [{ id: "2" }, { id: "3" }]