Convert text to vector. This function parses a JSON array string representation of a vector and converts it into the binary VECTOR data type.
SELECT HEX(vec_fromtext('[1,2,3]'));
+------------------------------+
| HEX(vec_fromtext('[1,2,3]')) |
+------------------------------+
| 0000803F0000004000004040 |
+------------------------------+
WEBINAR
The Next Generation of MariaDB: Powered by Vector Search