annsearchR 0.3.0
- Built on ann-search-rs 0.13.1. Faster IVF and KMKNN, faster NN-Descent builds and lower peak memory for most indices. Indices saved with 0.2.0 still load.
- IVF, SOAR and KMKNN train their centroids with e-means unless
kmeans_itersis set, so results differ at the same seed.kmeans_balancedonly affects Lloyd’s, i.e. whenkmeans_itersis set, and is ignored otherwise. -
knn_graph_nndescent()is no longer bit-identical to$extract_knn()at the same seed. Recall is unchanged. - RNN-Descent results differ at the same seed. NN-Descent distances and k-d forest cosine distances can differ at rounding level.
annsearchR 0.2.0
- Breaking: new on-disk format. Indices saved with 0.1.0 need rebuilding.
- Built on ann-search-rs 0.12.2. Smaller indices in memory and on disk, e.g. the NN-Descent build on SIFT-128 peaks at 6.3 GB instead of 8.2 GB. Recall and query speed unchanged.
- New
knn_graph_nndescent(): the NN-Descent kNN graph without keeping an index, same graph as$extract_knn()at lower peak memory. -
.verboseon every constructor, taking0,1or2as well asFALSE/TRUE. - Manhattan NN-Descent seeds by kd-tree leaf join, like the other metrics.
- Datasets above the 32-bit id limit are refused with an error.
annsearchR 0.1.0
CRAN release: 2026-11-13
First CRAN release.
- Thirteen CPU indices behind one R6 interface: brute force, kMkNN, Annoy, k-d forest, ball tree, IVF, SOAR, LSH, HNSW, NN-Descent, Vamana, NSG and RNN-Descent. Euclidean, squared Euclidean, cosine and Manhattan distances, f32 or f64 storage, save to disk and load back.
- Built on ann-search-rs 0.11.0. NN-Descent now seeds its graph by joining every forest leaf, as PyNNDescent does, and the default
n_treesmoved to scanpy’smin(5 + round(sqrt(n) / 20), 64). Expect different graphs at the same seed than with the r-universe 0.0.1 builds. - Under
R CMD check --as-cranthe thread pool starts at two threads. Outside of a check it still takes every core, seeann_set_threads(). - The Rust crates ship vendored in
src/rust/vendor.tar.xzand compile offline.
