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