Homepage

VectorDistanceSort

Last edit: Oct 13, 2026

Sort by distance between the stored embedding and a given vector, nearest first

type VectorDistanceSort {
  embedding: [Float!]
  order: VectorDistanceEnum!
}

Fields

embedding (Float)

Vector to compare with, with the same number of dimensions as the stored embeddings. When omitted, no sorting is applied

order (VectorDistanceEnum)

Distance metric used to compare the vectors

Questions?

We are always happy to help with any questions you may have.

contact us