未验证 提交 376642b9 编写于 作者: C cqy123456 提交者: GitHub

reset diskann min dim limit (#26344)

Signed-off-by: Ncqy123456 <qianya.cheng@zilliz.com>
上级 ec65a4e0
...@@ -20,10 +20,10 @@ const ( ...@@ -20,10 +20,10 @@ const (
// DefaultMaxDim is the largest dimension supported in Milvus // DefaultMaxDim is the largest dimension supported in Milvus
DefaultMaxDim = 32768 DefaultMaxDim = 32768
// If Dim = 32 and raw vector data = 2G, query node need 24G disk space When loading the vectors' disk index // If Dim = 32 and raw vector data = 2G, query node need ~17G disk space When loading the vectors' disk index
// If Dim = 2, and raw vector data = 2G, query node need 240G disk space When loading the vectors' disk index // If Dim = 2, and raw vector data = 2G, query node need ~60G disk space When loading the vectors' disk index
// So DiskAnnMinDim should be greater than or equal to 32 to avoid running out of disk space // So DiskAnnMinDim should be greater than or equal to 8 to avoid running out of disk space
DiskAnnMinDim = 32 DiskAnnMinDim = 8
HNSWMinEfConstruction = 8 HNSWMinEfConstruction = 8
HNSWMaxEfConstruction = 512 HNSWMaxEfConstruction = 512
......
...@@ -23,7 +23,7 @@ func Test_diskannChecker_CheckTrain(t *testing.T) { ...@@ -23,7 +23,7 @@ func Test_diskannChecker_CheckTrain(t *testing.T) {
} }
invalidParamsSmallDim := copyParams(validParams) invalidParamsSmallDim := copyParams(validParams)
invalidParamsSmallDim[DIM] = strconv.Itoa(15) invalidParamsSmallDim[DIM] = strconv.Itoa(4)
p1 := map[string]string{ p1 := map[string]string{
DIM: strconv.Itoa(128), DIM: strconv.Itoa(128),
......
...@@ -1881,7 +1881,7 @@ class TestIndexDiskann(TestcaseBase): ...@@ -1881,7 +1881,7 @@ class TestIndexDiskann(TestcaseBase):
t.join() t.join()
@pytest.mark.tags(CaseLabel.L1) @pytest.mark.tags(CaseLabel.L1)
@pytest.mark.parametrize("dim", [1, 2, 8, 16, 24, 31]) @pytest.mark.parametrize("dim", [1, 2, 4, 6])
def test_create_index_with_small_dim(self, dim): def test_create_index_with_small_dim(self, dim):
""" """
target: test create index with diskann target: test create index with diskann
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册