Skip to content

Releases: Enet4/faiss-rs

v0.3.0

21 Mar 16:11
Compare
Choose a tag to compare

New

  • StandardGpuResources can now be used by other indices through an immutable reference, thus allowing multiple GPU indices to share the same resources. The type is also Send now (but will never be Sync).
  • The new supertrait ConcurrentIndex contains methods for concurrent searching over an index. In this extended interface, search, range_search, and assign take &self instead of &mut self. FlatIndex implements ConcurrentIndex, more may come in the future.

Breaking Changes

  • renamed to_gpu and to_cpu methods to into_gpu and into_cpu, to comply with conventional Rust method naming.

v0.2.0

14 Feb 15:49
Compare
Choose a tag to compare

New:

  • Added the Clustering API. Safely perform k-means clustering and retrieve the centroids of each cluster.
  • Added a more type-safe FlatIndex API, which enables fetching the indexed data and calculating distances on subsets of the index.

Breaking changes:

  • The main error type Error is now an enum rather than an alias to NativeError.
  • Fetching the pointer to the underlying implementation is always done through inner_ptr(), inner_ptr_mut() no longer exists.

Other:

  • Improved implementation of GPU index: going back and forth between CPU and GPU retains static typing.
  • Improved documentation.