I see the implementation uses cosine similarity. Performance gains come from normalizing the embeddings and caching them. Have you considered ANN? I guess something like https://github.com/DanielKRing1/Annoy.js?
I see the implementation uses cosine similarity. Performance gains come from normalizing the embeddings and caching them.
Have you considered ANN? I guess something like https://github.com/DanielKRing1/Annoy.js?