diskann_disk/storage/api.rs
1/*
2 * Copyright (c) Microsoft Corporation.
3 * Licensed under the MIT license.
4 */
5
6use diskann_providers::storage::AsyncQuantLoadContext;
7
8/// Context for loading an async disk index.
9pub struct AsyncDiskLoadContext {
10 /// AsyncQuantLoadContext for loading quantized data.
11 pub quant_load_context: AsyncQuantLoadContext,
12 /// Number of nodes to pre-load using breadth-first-search and cache in memory.
13 pub num_nodes_to_cache: usize,
14 /// Number of maximum IO operations to perform during search.
15 pub search_io_limit: usize,
16 /// Number of vectors in the index.
17 pub num_points: usize,
18}