mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-04 09:52:30 +08:00
MS-267 default support IP
Former-commit-id: 64bfb03ea5291604f551530bc65896cc19841a5d
This commit is contained in:
parent
813f5151e8
commit
7b3886fd23
@ -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: {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user