Hierarchical Navigable Small Worlds(zilliz.com)
zilliz.com
Hierarchical Navigable Small Worlds
https://zilliz.com/blog/hierarchical-navigable-small-worlds-HNSW
9 comments
Good suggestion!
Actually the "ef" is not epsilon. It is a parameter of the HNSW index: https://github.com/nmslib/hnswlib/blob/master/ALGO_PARAMS.md...
Yeah it wasn't referenced or mentioned anywhere in the article so I had to guess what it was :-/ ... which I guess supports my point.
ef being "epsilon factor" was the least nonsensical thing I could come up with since it looked analogous to how you do like abs(a-b)<epsilon in floating point comparisons.
ef being "epsilon factor" was the least nonsensical thing I could come up with since it looked analogous to how you do like abs(a-b)<epsilon in floating point comparisons.
Hm... adding links in code comment might be better.
Probably a comment above the function explaining the incoming parameters, with a link to the specs if necessary, and then comments in the text and better variable names.
I think in this scenario when the primary audience of the code isn't an interpreter, but people who don't understand HNSWs, and who will probably only glance over the code once or twice, you really can't lay on the verbosity heavily enough.
I think in this scenario when the primary audience of the code isn't an interpreter, but people who don't understand HNSWs, and who will probably only glance over the code once or twice, you really can't lay on the verbosity heavily enough.
https://github.com/instant-labs/instant-distance is a compact, fairly readable, pretty fast implementation of the paper in Rust (that I built).
We use it for searching aftermarket domains on Instant Domain Search.
We use it for searching aftermarket domains on Instant Domain Search.
Why have a cookie dialog if my only option is to "accept"? Not much of a dialog there.
probably required by some laws
Actually that’s a common misunderstanding of the ePrivacy directive (often bundled with the GDPR(, if you’re only providing an accept dialog you might as well save the effort and not show a cookie notice at all.
You need to obtain consent before you set any marketing cookies and effective consent can’t be obtained if your only option is “yeah track me”
You need to obtain consent before you set any marketing cookies and effective consent can’t be obtained if your only option is “yeah track me”
Like this ChatGPT-looking function
code could have been trivially cleaned up and it would have been so much easier to follow. I'm guessing what some of these variables are supposed to mean.