-
Notifications
You must be signed in to change notification settings - Fork 409
Expand file tree
/
Copy pathdefaults.h
More file actions
44 lines (36 loc) · 1.18 KB
/
defaults.h
File metadata and controls
44 lines (36 loc) · 1.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT license.
#pragma once
#include <stdint.h>
namespace diskann
{
namespace defaults
{
const float ALPHA = 1.2f;
const uint32_t NUM_THREADS = 0;
const uint32_t MAX_OCCLUSION_SIZE = 750;
const bool HAS_LABELS = false;
const uint32_t FILTER_LIST_SIZE = 0;
const uint32_t NUM_FROZEN_POINTS_STATIC = 0;
const uint32_t NUM_FROZEN_POINTS_DYNAMIC = 1;
// In-mem index related limits
const float GRAPH_SLACK_FACTOR = 1.3f;
// SSD Index related limits
const uint64_t MAX_GRAPH_DEGREE = 512;
const uint64_t SECTOR_LEN = 4096;
const uint64_t MAX_N_SECTOR_READS = 500;
// following constants should always be specified, but are useful as a
// sensible default at cli / python boundaries
const uint32_t MAX_DEGREE = 64;
const uint32_t BUILD_LIST_SIZE = 100;
const uint32_t SATURATE_GRAPH = false;
const uint32_t SEARCH_LIST_SIZE = 100;
const bool DIVERSE_INDEX = false;
const std::string EMPTY_STRING = "";
const bool NUM_DIVERSE_BUILD = 1;
const bool REORDER_INDEX = false;
const uint32_t REORDER_DIM = 0;
const bool ATTRIBUTE_DIVERSITY = false;
const float ATTR_DIST_THRESHOLD = 0.2f;
} // namespace defaults
} // namespace diskann