diff options
author | Arne Juul <arnej@verizonmedia.com> | 2020-09-04 08:13:47 +0000 |
---|---|---|
committer | Arne Juul <arnej@verizonmedia.com> | 2020-09-04 13:12:35 +0000 |
commit | 1bf14be27705a251adaac48143187d06922ad720 (patch) | |
tree | ac15b1ec7ac50cab51291cf88726431a65b37199 /configdefinitions | |
parent | 36798cb5069419c4a45172c1629406089efcee90 (diff) |
add "Hamming" distance metric for ANN
Diffstat (limited to 'configdefinitions')
-rw-r--r-- | configdefinitions/src/vespa/attributes.def | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/configdefinitions/src/vespa/attributes.def b/configdefinitions/src/vespa/attributes.def index 53f737d2b33..6c69d71fdf6 100644 --- a/configdefinitions/src/vespa/attributes.def +++ b/configdefinitions/src/vespa/attributes.def @@ -33,13 +33,13 @@ attribute[].imported bool default=false # The distance metric to use for nearest neighbor search. # Is only used when the attribute is a 1-dimensional indexed tensor. -attribute[].distancemetric enum { EUCLIDEAN, ANGULAR, GEODEGREES, INNERPRODUCT } default=EUCLIDEAN +attribute[].distancemetric enum { EUCLIDEAN, ANGULAR, GEODEGREES, INNERPRODUCT, HAMMING } default=EUCLIDEAN # Configuration parameters for a hnsw index used together with a 1-dimensional indexed tensor for approximate nearest neighbor search. attribute[].index.hnsw.enabled bool default=false attribute[].index.hnsw.maxlinkspernode int default=16 attribute[].index.hnsw.neighborstoexploreatinsert int default=200 # Deprecated: Remove on Vespa 8 or before when possible. -attribute[].index.hnsw.distancemetric enum { EUCLIDEAN, ANGULAR, GEODEGREES } default=EUCLIDEAN +attribute[].index.hnsw.distancemetric enum { EUCLIDEAN, ANGULAR, GEODEGREES, HAMMING } default=EUCLIDEAN # Whether multi-threaded indexing is enabled for this hnsw index. attribute[].index.hnsw.multithreadedindexing bool default=true |