From 94fc1db52807c47e2665415ca94805e8e4304901 Mon Sep 17 00:00:00 2001 From: cqy123456 Date: Wed, 1 Nov 2023 23:22:53 -0400 Subject: [PATCH] remove diskann pramaters check Signed-off-by: cqy123456 --- src/index/diskann/diskann.cc | 9 --------- 1 file changed, 9 deletions(-) diff --git a/src/index/diskann/diskann.cc b/src/index/diskann/diskann.cc index f0e203619..0b67e6b0f 100644 --- a/src/index/diskann/diskann.cc +++ b/src/index/diskann/diskann.cc @@ -522,15 +522,6 @@ DiskANNIndexNode::Search(const DataSet& dataset, const Config& cfg, const Bit if (!CheckMetric(search_conf.metric_type.value())) { return expected::Err(Status::invalid_metric_type, "unsupported metric type"); } - auto max_search_list_size = std::max(kSearchListSizeMaxValue, search_conf.k.value() * 10); - if (search_conf.search_list_size.value() > max_search_list_size || - search_conf.search_list_size.value() < search_conf.k.value()) { - auto msg = fmt::format( - "search_list_size should be in range: [topk, max(200, topk * 10)], topk = {}, search_list_size = {}", - search_conf.k.value(), search_conf.search_list_size.value()); - LOG_KNOWHERE_ERROR_ << msg; - return expected::Err(Status::out_of_range_in_json, msg); - } auto k = static_cast(search_conf.k.value()); auto lsearch = static_cast(search_conf.search_list_size.value()); auto beamwidth = static_cast(search_conf.beamwidth.value());