From 1f8c1afe8a5b6307f58a3eed49937a917137f774 Mon Sep 17 00:00:00 2001 From: groot Date: Tue, 5 Dec 2023 16:20:42 +0800 Subject: [PATCH] fix: Change ranges of HNSW parameters according to Knowhere (#28877) fix: https://github.com/milvus-io/milvus/issues/28860 pr: https://github.com/milvus-io/milvus/pull/28875 Signed-off-by: yhmo --- pkg/util/indexparamcheck/constraints.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkg/util/indexparamcheck/constraints.go b/pkg/util/indexparamcheck/constraints.go index b30d16b86c64a..44b620218194a 100644 --- a/pkg/util/indexparamcheck/constraints.go +++ b/pkg/util/indexparamcheck/constraints.go @@ -20,10 +20,10 @@ const ( // DefaultMaxDim is the largest dimension supported in Milvus DefaultMaxDim = 32768 - HNSWMinEfConstruction = 8 - HNSWMaxEfConstruction = 512 - HNSWMinM = 4 - HNSWMaxM = 64 + HNSWMinEfConstruction = 1 + HNSWMaxEfConstruction = 2147483647 + HNSWMinM = 1 + HNSWMaxM = 2048 // DIM is a constant used to represent dimension DIM = common.DimKey