From 0e6a6a9f9af4d93c7376b1cdc5caa561daac9f0d Mon Sep 17 00:00:00 2001 From: SylviaZiyuZhang Date: Thu, 9 Oct 2025 00:58:15 -0400 Subject: [PATCH 1/2] index factory bugfix --- src/index_factory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index_factory.cpp b/src/index_factory.cpp index 35790f8d6..40ec0a0c0 100644 --- a/src/index_factory.cpp +++ b/src/index_factory.cpp @@ -127,7 +127,7 @@ std::unique_ptr IndexFactory::create_instance() if (_config->data_strategy == DataStoreStrategy::MEMORY && _config->pq_dist_build) { pq_data_store = - construct_pq_datastore(_config->data_strategy, num_points + _config->num_frozen_pts, dim, + construct_pq_datastore(_config->data_strategy, num_points, dim, _config->metric, _config->num_pq_chunks, _config->use_opq); } else @@ -138,7 +138,7 @@ std::unique_ptr IndexFactory::create_instance() (size_t)(defaults::GRAPH_SLACK_FACTOR * 1.05 * (_config->index_write_params == nullptr ? 0 : _config->index_write_params->max_degree)); std::unique_ptr graph_store = - construct_graphstore(_config->graph_strategy, num_points + _config->num_frozen_pts, max_reserve_degree); + construct_graphstore(_config->graph_strategy, num_points, max_reserve_degree); // REFACTOR TODO: Must construct in-memory PQDatastore if strategy == ONDISK and must construct // in-mem and on-disk PQDataStore if strategy == ONDISK and diskPQ is required. From 082c99d41e4c8c363a1e4e25d65ea638a2845117 Mon Sep 17 00:00:00 2001 From: Sylvia Ziyu Zhang <43479923+SylviaZiyuZhang@users.noreply.github.com> Date: Wed, 5 Nov 2025 17:18:21 -0500 Subject: [PATCH 2/2] Change uint32_t to std::uint32_t in ANNException --- include/ann_exception.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/ann_exception.h b/include/ann_exception.h index 474a5266a..779cb4adc 100644 --- a/include/ann_exception.h +++ b/include/ann_exception.h @@ -20,7 +20,7 @@ class ANNException : public std::runtime_error public: DISKANN_DLLEXPORT ANNException(const std::string &message, int errorCode); DISKANN_DLLEXPORT ANNException(const std::string &message, int errorCode, const std::string &funcSig, - const std::string &fileName, uint32_t lineNum); + const std::string &fileName, std::uint32_t lineNum); private: int _errorCode;