-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANN support? #7
Comments
Interesting, how would you implement this? |
I think the most popular way to implement it is using Approximate K Nearest Neighbor. However, I should note that I'm not knowledgeable in that area.
Yes, the algorithm makes such a tradeoff — a little less accurate for a massive speed bump when the dataset is large. This is what you can expect from commercial vector databases (example: https://supabase.com/vector). |
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?
The text was updated successfully, but these errors were encountered: