From e406b7f5ea03f762f11a6f26974016f57bdfad4a Mon Sep 17 00:00:00 2001 From: Andrew Kane Date: Wed, 23 Aug 2023 21:03:07 -0700 Subject: [PATCH] Added comments [skip ci] --- src/hnsw.h | 2 ++ src/ivfflat.h | 1 + 2 files changed, 3 insertions(+) diff --git a/src/hnsw.h b/src/hnsw.h index e79d894..76c7c6c 100644 --- a/src/hnsw.h +++ b/src/hnsw.h @@ -32,6 +32,7 @@ #define HNSW_UPDATE_LOCK 0 #define HNSW_SCAN_LOCK 1 +/* HNSW parameters */ #define HNSW_DEFAULT_M 16 #define HNSW_MIN_M 2 #define HNSW_MAX_M 100 @@ -42,6 +43,7 @@ #define HNSW_MIN_EF_SEARCH 1 #define HNSW_MAX_EF_SEARCH 1000 +/* Tuple types */ #define HNSW_ELEMENT_TUPLE_TYPE 1 #define HNSW_NEIGHBOR_TUPLE_TYPE 2 diff --git a/src/ivfflat.h b/src/ivfflat.h index 2c18fd4..c68cfcd 100644 --- a/src/ivfflat.h +++ b/src/ivfflat.h @@ -40,6 +40,7 @@ #define IVFFLAT_METAPAGE_BLKNO 0 #define IVFFLAT_HEAD_BLKNO 1 /* first list page */ +/* IVFFlat parameters */ #define IVFFLAT_DEFAULT_LISTS 100 #define IVFFLAT_MAX_LISTS 32768