Skip to content

DiskANN v0.57.0

Choose a tag to compare

@hildebrandmw hildebrandmw released this 08 Sep 14:21
· 26 commits to main since this release
8c9dab9

Breaking Changes

Flat search visitors are now query-aware (#1359)

  • flat::FlatIndex  has been removed. The search entry point is now the free function flat::knn_search, and the DistancesUnordered visitor is constructed per-query rather than reused. The ElementRef, QueryComputer, and QueryComputerError associated types and the visitor GAT have also been removed. DistancesUnordered now yields (id, distance) pairs directly.

Migration: Callers of the old FlatIndex/visitor API should:

  1. Drop FlatIndex and construct your DistancesUnordered visitor directly for the query being searched.
  2. Replace calls into the removed wrapper with flat::knn_search(&mut visitor, k, processor, query, &mut output).
  3. Remove any ElementRef/QueryComputer implementation, fuse scanning and distance computation directly in your DistancesUnordered::distances_unordered implementation.

All Changes

New Contributors

Full Changelog: v0.56.0...v0.57.0