diskann-providers 0.50.1

DiskANN is a fast approximate nearest neighbor search library for high dimensional data
Documentation
/*
 * Copyright (c) Microsoft Corporation.
 * Licensed under the MIT license.
 */
pub mod file_util;
pub use file_util::{file_exists, load_metadata_from_file};

mod bridge_error;
pub use bridge_error::{Bridge, BridgeErr};

pub mod rayon_util;
pub use rayon_util::{
    AsThreadPool, ParallelIteratorInPool, RayonThreadPool, create_thread_pool,
    create_thread_pool_for_bench, create_thread_pool_for_test, execute_with_rayon,
};

mod timer;
pub use timer::Timer;

/// Read/write block size (64 MB) for cached I/O operations such as CachedReader and CachedWriter
pub const READ_WRITE_BLOCK_SIZE: u64 = 64 * 1024 * 1024;

pub mod random;
pub use random::{
    DEFAULT_SEED_FOR_TESTS, RandomProvider, StandardRng, create_rnd, create_rnd_from_optional_seed,
    create_rnd_from_seed, create_rnd_from_seed_in_tests, create_rnd_in_tests, create_rnd_provider,
    create_rnd_provider_from_optional_seed, create_rnd_provider_from_seed,
    create_rnd_provider_from_seed_in_tests,
};

mod vector_data_iterator;
pub use vector_data_iterator::VectorDataIterator;

mod storage_utils;
pub use storage_utils::{
    load_vector_ids, read_bin_from, save_bytes, save_data_in_base_dimensions, write_bin_from,
};

mod sampling;
pub use sampling::{SampleVectorReader, SamplingDensity, gen_random_slice};

mod pq_path_names;
pub use pq_path_names::PQPathNames;

mod medoid;
pub use medoid::{MAX_MEDOID_SAMPLE_SIZE, find_medoid_from_file, find_medoid_with_sampling};