POST
/
query

Request

vector
number[]
required

The query vector

The provided vector should have the same number of dimensions as your index.

topK
number
required

The total number of the vectors that you want to recieve as a query result. The response will be sorted based on the distance metric score, and topK vectors will be returned.

includeMetadata
boolean

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.

includeVectors
boolean

Whether to include the vector data of the resulting vectors.

Response

Response
Array
id
string
required

The ID of the resulting vector.

score
number
required

The score of the vector data, calculated based on the distance metric of your index.

vector
number[]
required

The resulting vector data.

metadata
Object

Whether to include the vector values of the resulting vector objects.