Initial commit
This commit is contained in:
34
packages/leann-backend-diskann/third_party/DiskANN/include/defaults.h
vendored
Normal file
34
packages/leann-backend-diskann/third_party/DiskANN/include/defaults.h
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
// 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 = 128;
|
||||
|
||||
// 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;
|
||||
} // namespace defaults
|
||||
} // namespace diskann
|
||||
Reference in New Issue
Block a user