Skip to content

@saehrimnir/druidjs / ParametersHNSW

Interface: ParametersHNSW

Defined in: knn/index.js:33

Properties

PropertyTypeDescriptionDefined in
efnumberSize of candidate list during search. Default is 50knn/index.js:44
ef_constructionnumberSize of candidate list during construction. Default is 200knn/index.js:38
heuristicbooleanUse heuristics or naive selection. Default is trueknn/index.js:35
mnumberNumber of connections a newly inserted element creates on each layer it joins, layer 0 included. Default is 16knn/index.js:36
m0number | nullUpper bound on connections at the ground layer (layer 0). Unlike m this is not a budget for the inserted element, it is the cap enforced once reverse connections from later insertions have accumulated. Default is 2 * mknn/index.js:39
metricMetricMetric to use: (a, b) => distance. Default is euclideanknn/index.js:34
mLnumber | nullNormalization factor for level generation. Default is 1 / Math.log(m)knn/index.js:42
seednumberSeed for random number generator. Default is 1212knn/index.js:43