The embeddings are just a flat array of floating point numbers. Try typed arrays/buffers to read and write the typed arrays directly as BLOB data. Protobuf and JSON and other serialization schemes are way overkill for something that should be as simple as a memcpy.
vishnumohandas|2 years ago
[1]: https://news.ycombinator.com/item?id=39291411