# Vector Functions

- [VEC\_DISTANCE](/docs/server/reference/sql-functions/vector-functions/vector-functions-vec_distance.md): Calculate distance between vectors. This function computes the distance between two vectors using either Euclidean or Cosine metric, depending on the index.
- [VEC\_DISTANCE\_COSINE](/docs/server/reference/sql-functions/vector-functions/vec_distance_cosine.md): Calculate Cosine distance. This function computes the Cosine distance between two vectors, measuring the cosine of the angle between them.
- [VEC\_DISTANCE\_EUCLIDEAN](/docs/server/reference/sql-functions/vector-functions/vec_distance_euclidean.md): Calculate Euclidean distance. This function computes the Euclidean (L2) distance between two vectors, representing the straight-line distance.
- [VEC\_FromText](/docs/server/reference/sql-functions/vector-functions/vec_fromtext.md): Convert text to vector. This function parses a JSON array string representation of a vector and converts it into the binary VECTOR data type.
- [VEC\_ToText](/docs/server/reference/sql-functions/vector-functions/vec_totext.md): Convert vector to text. This function takes a binary VECTOR data type and returns its JSON array string representation.
