next_plaid/
lib.rs

1//! Next-Plaid: CPU-based PLAID implementation for multi-vector search
2//!
3//! This crate provides a pure Rust, CPU-only implementation of the PLAID algorithm
4//! for efficient multi-vector search (late interaction retrieval).
5
6// Link BLAS implementation when feature is enabled
7#[cfg(feature = "accelerate")]
8extern crate blas_src;
9
10#[cfg(feature = "openblas")]
11extern crate openblas_src;
12
13pub mod codec;
14pub mod delete;
15pub mod embeddings;
16pub mod error;
17pub mod filtering;
18pub mod index;
19pub mod kmeans;
20pub mod mmap;
21pub mod search;
22pub mod update;
23pub mod utils;
24
25pub use codec::ResidualCodec;
26pub use delete::delete_from_index;
27pub use error::{Error, Result};
28pub use index::MmapIndex;
29pub use index::{IndexConfig, Metadata};
30pub use kmeans::{
31    compute_centroids, compute_centroids_from_documents, compute_kmeans, estimate_num_partitions,
32    ComputeKmeansConfig, FastKMeans, KMeansConfig,
33};
34pub use search::{QueryResult, SearchParameters};
35pub use update::UpdateConfig;