diff --git a/internal/querynodev2/mock_data.go b/internal/querynodev2/mock_data.go index c43aa341fa..b678aaa094 100644 --- a/internal/querynodev2/mock_data.go +++ b/internal/querynodev2/mock_data.go @@ -54,8 +54,7 @@ const ( IndexFaissBinIDMap = "BIN_FLAT" IndexFaissBinIVFFlat = "BIN_IVF_FLAT" - IndexHNSW = "HNSW" - IndexANNOY = "ANNOY" + IndexHNSW = "HNSW" ) // ---------- unittest util functions ---------- diff --git a/internal/querynodev2/segments/mock_data.go b/internal/querynodev2/segments/mock_data.go index 1fb43efc12..e2c4a22777 100644 --- a/internal/querynodev2/segments/mock_data.go +++ b/internal/querynodev2/segments/mock_data.go @@ -57,7 +57,6 @@ const ( IndexFaissBinIDMap = "BIN_FLAT" IndexFaissBinIVFFlat = "BIN_IVF_FLAT" IndexHNSW = "HNSW" - IndexANNOY = "ANNOY" L2 = "L2" IP = "IP" @@ -789,9 +788,6 @@ func genIndexParams(indexType, metricType string) (map[string]string, map[string indexParams["M"] = strconv.Itoa(16) indexParams["efConstruction"] = strconv.Itoa(efConstruction) //indexParams["ef"] = strconv.Itoa(ef) - } else if indexType == IndexANNOY { - indexParams["n_trees"] = strconv.Itoa(4) - indexParams["search_k"] = strconv.Itoa(100) } else if indexType == IndexFaissBinIVFFlat { // binary vector indexParams["nlist"] = strconv.Itoa(nlist) indexParams["m"] = strconv.Itoa(m) diff --git a/internal/util/indexcgowrapper/index_test.go b/internal/util/indexcgowrapper/index_test.go index b6d6d6179c..0eda1f754c 100644 --- a/internal/util/indexcgowrapper/index_test.go +++ b/internal/util/indexcgowrapper/index_test.go @@ -19,8 +19,7 @@ const ( IndexFaissBinIDMap = "BIN_FLAT" IndexFaissBinIVFFlat = "BIN_IVF_FLAT" - IndexHNSW = "HNSW" - IndexANNOY = "ANNOY" + IndexHNSW = "HNSW" // metric type L2 = "L2" @@ -60,8 +59,6 @@ func generateFloatVectorTestCases() []vecTestCase { {IndexFaissIVFSQ8, IP, false, schemapb.DataType_FloatVector}, {IndexHNSW, L2, false, schemapb.DataType_FloatVector}, {IndexHNSW, IP, false, schemapb.DataType_FloatVector}, - {IndexANNOY, L2, false, schemapb.DataType_FloatVector}, - {IndexANNOY, IP, false, schemapb.DataType_FloatVector}, } } @@ -103,10 +100,6 @@ func generateParams(indexType, metricType string) (map[string]string, map[string indexParams["M"] = strconv.Itoa(16) indexParams["efConstruction"] = strconv.Itoa(efConstruction) indexParams["ef"] = strconv.Itoa(ef) - } else if indexType == IndexANNOY { - indexParams["dim"] = strconv.Itoa(dim) - indexParams["n_trees"] = strconv.Itoa(4) - indexParams["search_k"] = strconv.Itoa(100) } else if indexType == IndexFaissBinIVFFlat { // binary vector indexParams["dim"] = strconv.Itoa(dim) indexParams["nlist"] = strconv.Itoa(nlist)