Experimenting with storing embedding vectors as packed 32-bit floats in a MySQL VARBINARY column and handling distance calculations in PHP.

As expected, the real bottleneck is the math -- especially with larger vectors. Also array_map() and array_sum() are super slow and unusable for this.
Post image

Comments