Vector Search Technique: k-NN or ANN ? #515
Answered
by
micheleriva
MentalGear
asked this question in
Q&A
-
Let me first say thank you for this superb dependency-free open source search package and great docs! One thing the docs are missing though is an explanation how the vector search is implemented, which is important to assess accuracy and efficiency:
|
Beta Was this translation helpful? Give feedback.
Answered by
micheleriva
Oct 10, 2023
Replies: 1 comment 3 replies
-
Hi @MentalGear, vector search is implemented using cosine similarity and presumes that all the vectors have been normalized before the insertion. It's pure JS and has no external dependencies. |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
MentalGear
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @MentalGear, vector search is implemented using cosine similarity and presumes that all the vectors have been normalized before the insertion. It's pure JS and has no external dependencies.