From 7b3886fd23cae55ee1a79f9ef9995789da051da7 Mon Sep 17 00:00:00 2001 From: "xj.lin" Date: Wed, 24 Jul 2019 10:33:41 +0800 Subject: [PATCH] MS-267 default support IP Former-commit-id: 64bfb03ea5291604f551530bc65896cc19841a5d --- cpp/src/wrapper/knowhere/vec_index.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpp/src/wrapper/knowhere/vec_index.cpp b/cpp/src/wrapper/knowhere/vec_index.cpp index 65364eb0..cc9f8084 100644 --- a/cpp/src/wrapper/knowhere/vec_index.cpp +++ b/cpp/src/wrapper/knowhere/vec_index.cpp @@ -192,7 +192,7 @@ server::KnowhereError write_index(VecIndexPtr index, const std::string &location void AutoGenParams(const IndexType &type, const long &size, zilliz::knowhere::Config &cfg) { if (!cfg.contains("nlist")) { cfg["nlist"] = int(size / 1000000.0 * 16384); } if (!cfg.contains("gpu_id")) { cfg["gpu_id"] = int(0); } - if (!cfg.contains("metric_type")) { cfg["metric_type"] = "L2"; } + if (!cfg.contains("metric_type")) { cfg["metric_type"] = "IP"; } // TODO: remove switch (type) { case IndexType::FAISS_IVFSQ8_MIX: { -- GitLab