5 ms·
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
by maskros 3y ago
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 3y agoYes, this[1] did the job, thank you! [1]: https://news.ycombinator.com/item?id=39291411 https://news.ycombinator.com/item?id=39291411