raise the limitation of hnsw ef parameter to 32768 (#3738)

* raise hnsw ef parameter to 32768

Signed-off-by: cmli <chengming.li@zilliz.com>
pull/3761/head
op-hunter 2020-09-16 09:20:56 +08:00 committed by GitHub
parent 18695db507
commit 7a2d847743
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -270,7 +270,7 @@ HNSWConfAdapter::CheckTrain(Config& oricfg, const IndexMode mode) {
bool
HNSWConfAdapter::CheckSearch(Config& oricfg, const IndexType type, const IndexMode mode) {
static int64_t MAX_EF = 4096;
static int64_t MAX_EF = 32768;
CheckIntByRange(knowhere::IndexParams::ef, oricfg[knowhere::meta::TOPK], MAX_EF);

View File

@ -306,7 +306,7 @@ ValidationUtil::ValidateSearchParams(const milvus::json& search_params,
break;
}
case (int32_t)engine::EngineType::HNSW: {
auto status = CheckParameterRange(search_params, knowhere::IndexParams::ef, topk, 4096);
auto status = CheckParameterRange(search_params, knowhere::IndexParams::ef, topk, 32768);
if (!status.ok()) {
return status;
}