Skip to main content

Crate slate_core

Crate slate_core 

Source
Expand description

§slate-core

Foundational, dependency-light types shared across every Slate-ANN crate: identifiers, distance metrics, on-disk dtypes, the central error type, and the build/search/storage configuration structs.

Keeping these here lets the SIMD, storage, PQ, graph, and index layers depend on a common vocabulary without depending on each other.

Re-exports§

pub use config::BuildConfig;
pub use config::HnswParams;
pub use config::IndexBackend;
pub use config::IoProfile;
pub use config::IvfParams;
pub use config::PqParams;
pub use config::SearchConfig;
pub use config::StorageParams;
pub use cost::DistanceCost;
pub use cost::QueryCost;
pub use cost::QueryCounters;
pub use cost::StorageProfile;
pub use search::cmp_ascending;
pub use search::Neighbor;
pub use search::TopK;

Modules§

config
Build, search, and storage configuration.
cost
The storage-aware query-cost model.
search
Search result types and the bounded top-k collector shared by every Slate-ANN backend.

Structs§

VectorId
Stable identifier for a vector within an index.

Enums§

Dtype
Element type used to store exact vectors on disk.
Error
Errors produced by the Slate-ANN engine.
Metric
Distance metric used to compare query and database vectors.

Type Aliases§

Result
Result alias used throughout Slate-ANN.