GET
/
fetch
/
{namespace}

You can fetch vector values or metadata of one or more by providing their vector ids.

Vectors will be fetched from the default namespace by default. You can use a different namespace by specifying it in the request path.

Request

ids
string[]
required

Array of vector ids to fetch.

includeMetadata
boolean
default: "false"

Whether to include the metadata of the vectors in the response, if any. It is recommended to set this to true to easily identify vectors.

includeVectors
boolean
default: "false"

Whether to include the vector values in the response. It is recommended to set this to false as the vector values can be quite big, and not needed most of the time.

includeData
boolean
default: "false"

Whether to include the data of the vectors in the response, if any.

Path

namespace
string
default: ""

The namespace to use. When no namespace is specified, the default namespace will be used.

Response

Vectors
Object[]

Array of vectors in the same order they provided in the ids array. Array elements can be null if no such vector exists with the provided id.

id
string
required

The id of the vector.

vector
number[]

The vector value.

metadata
Object

The metadata of the vector, if any.

data
string

The unstructured data of the vector, if any.