AgentSea. Vector
(agentsea_embeddings v0.1.0)
Copy Markdown
Small vector math: dot product, L2 norm, normalization, cosine similarity.
Summary
Functions
Cosine similarity in [-1, 1] (0.0 if either vector is zero).
Scale a vector to unit length (returns it unchanged if it's the zero vector).
Types
@type t() :: [float()]
Functions
Cosine similarity in [-1, 1] (0.0 if either vector is zero).
Scale a vector to unit length (returns it unchanged if it's the zero vector).