mirror of https://github.com/milvus-io/milvus.git
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
parent
18695db507
commit
7a2d847743
|
@ -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);
|
||||
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue