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.

id
string | number
required

The ID of the resulting vector.

vector
number[]

The resulting vector.

metadata
Record<string, unknown>

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" }]