Hacker News new | ask | show | jobs
by maskros 861 days 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.
1 comments

Yes, this[1] did the job, thank you!

[1]: https://news.ycombinator.com/item?id=39291411