Small vector math helpers used by classifier and embedding strategies.
These functions stay pure and dependency-free so classifier scoring can be tested without loading embedding models or Vettore indexes.
Summary
Functions
Returns a normalized centroid for vectors.
Returns cosine similarity in [-1.0, 1.0].
Normalizes a vector to unit length.
Returns Vettore's raw cosine score.
Functions
Returns a normalized centroid for vectors.
Returns cosine similarity in [-1.0, 1.0].
Normalizes a vector to unit length.
Returns Vettore's raw cosine score.