Releases: Enet4/faiss-rs
Releases · Enet4/faiss-rs
v0.3.0
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 alsoSend
now (but will never beSync
).- The new supertrait
ConcurrentIndex
contains methods for concurrent searching over an index. In this extended interface,search
,range_search
, andassign
take&self
instead of&mut self
.FlatIndex
implementsConcurrentIndex
, more may come in the future.
Breaking Changes
- renamed
to_gpu
andto_cpu
methods tointo_gpu
andinto_cpu
, to comply with conventional Rust method naming.
v0.2.0
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 toNativeError
. - 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.