Skip to content

Commit

Permalink
remove diskann pramaters check
Browse files Browse the repository at this point in the history
Signed-off-by: cqy123456 <[email protected]>
  • Loading branch information
cqy123456 committed Nov 2, 2023
1 parent ebe8504 commit 94fc1db
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions src/index/diskann/diskann.cc
Original file line number Diff line number Diff line change
Expand Up @@ -522,15 +522,6 @@ DiskANNIndexNode<T>::Search(const DataSet& dataset, const Config& cfg, const Bit
if (!CheckMetric(search_conf.metric_type.value())) {
return expected<DataSetPtr>::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<DataSetPtr>::Err(Status::out_of_range_in_json, msg);
}
auto k = static_cast<uint64_t>(search_conf.k.value());
auto lsearch = static_cast<uint64_t>(search_conf.search_list_size.value());
auto beamwidth = static_cast<uint64_t>(search_conf.beamwidth.value());
Expand Down

0 comments on commit 94fc1db

Please sign in to comment.