From f4b430b3c25a2dbbdeca2d7762143b054d8c7306 Mon Sep 17 00:00:00 2001 From: yashpatel007 Date: Thu, 5 Oct 2023 19:01:38 -0400 Subject: [PATCH] fixing error for build stitched index --- src/in_mem_filter_store.cpp | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/in_mem_filter_store.cpp b/src/in_mem_filter_store.cpp index d3db0ae59..0e80ec479 100644 --- a/src/in_mem_filter_store.cpp +++ b/src/in_mem_filter_store.cpp @@ -204,10 +204,12 @@ template void InMemFilterStore::load_label_map } else { - throw diskann::ANNException( - "Can't load label map file please make sure it was generate, either by filter_store->load_raw_labels() " - "then index->save() or convert_labels_string_to_int() method in case of dynamic index", - -1); + // TODO: throw exception from here and also make sure filtered_index is set appropriately for both build and + // search of index. + diskann::cout << "Warning: Can't load label map file please make sure it was generate, either by " + "filter_store->load_raw_labels() " + "then index->save() or convert_labels_string_to_int() method in case of dynamic index" + << std::endl; } }