See details of hnsw_build and hnsw_search.
method_hnsw(x, y, k, distance, verbose, n_threads, path, control, seed)
deduplication or reference data,
query data,
number of neighbours to return,
type of distance to calculate,
if TRUE, log messages to the console,
Maximum number of threads to use,
path to write the index,
controls for the HNSW algorithm.
Maciej Beręsewicz