jelmerk / hnswlib

Java library for approximate nearest neighbors search using Hierarchical Navigable Small World graphs
Apache License 2.0
260 stars 56 forks source link

If there is no near similar items. What is the output? #70

Closed ccalvin97 closed 9 months ago

ccalvin97 commented 9 months ago

Hi, thanks for your work. I am curious about if I set similarityThreshold very very small and distanceFunction='euclidean'


Let's say, there is no near similar items from ItemA.
Then, what is the output of this specific ItemA? The Algo will output empty and ignore this ItemA?

many thanks

jelmerk commented 9 months ago

you'll just get an empty collection of neighbours