const responseDelete = await index.fetch(["2", "3"], {});
// [{ id: "2" }, { id: "3" }]
Used to retrieve the vector by ID.

Arguments

IDs
string[] | number[]
required
The IDs of the vectors you want to fetch.
Options
Object
required

Response

FetchResponse
Vector[]
required
This field is null if no vector with the specified id is found.
const responseDelete = await index.fetch(["2", "3"], {});
// [{ id: "2" }, { id: "3" }]