hnswlib
hnswlib copied to clipboard
ef parameter
Hi, I have an interesting question, ef is used as a search parameter for HNSW, however I don't see this name in other indexes, what does it mean? why you choose the "ef" as its name?
Hi @chasingegg, Initially ef was "ensure factor". In the NSW search algorithm, the result set size was set to the number of the requested nearest neighbors K (that part was designed by @aponom84) and the accuracy was controlled by the number of parallel searches from different seeds. Later the parallel searches part was removed and the size of the set was made a parameter that does not has a very clear interpretation, but leads ("ensures") a better accuracy.