Loading CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ Please mark all change in change log and use the issue from GitHub - \#1507 set_config for insert_buffer_size is wrong - \#1510 Add set interfaces for WAL configurations - \#1511 Fix big integer cannot pass to server correctly - \#1517 result is not correct when search vectors in multi partition, index type is RNSG - \#1518 Table count did not match after deleting vectors and compact - \#1521 Make cache_insert_data take effect in-service - \#1525 Add setter API for config preload_table Loading core/src/index/knowhere/knowhere/index/vector_index/nsg/NSG.cpp +1 −6 Original line number Diff line number Diff line Loading @@ -698,13 +698,8 @@ NsgIndex::Search(const float* query, const unsigned& nq, const unsigned& dim, co int64_t* ids, SearchParams& params) { std::vector<std::vector<Neighbor>> resset(nq); if (k >= 45) { params.search_length = k; } TimeRecorder rc("NsgIndex::search", 1); // TODO(linxj): when to use openmp if (nq <= 4) { if (nq == 1) { GetNeighbors(query, resset[0], nsg, ¶ms); } else { #pragma omp parallel for Loading core/src/wrapper/ConfAdapter.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -225,7 +225,9 @@ NSGConfAdapter::CheckTrain(milvus::json& oricfg) { // auto tune params oricfg[knowhere::IndexParams::nlist] = MatchNlist(oricfg[knowhere::meta::ROWS].get<int64_t>(), 8192, 8192); oricfg[knowhere::IndexParams::nprobe] = int(oricfg[knowhere::IndexParams::nlist].get<int64_t>() * 0.01); int64_t nprobe = int(oricfg[knowhere::IndexParams::nlist].get<int64_t>() * 0.1); oricfg[knowhere::IndexParams::nprobe] = nprobe < 1 ? 1 : nprobe; return true; } Loading Loading
CHANGELOG.md +1 −0 Original line number Diff line number Diff line Loading @@ -36,6 +36,7 @@ Please mark all change in change log and use the issue from GitHub - \#1507 set_config for insert_buffer_size is wrong - \#1510 Add set interfaces for WAL configurations - \#1511 Fix big integer cannot pass to server correctly - \#1517 result is not correct when search vectors in multi partition, index type is RNSG - \#1518 Table count did not match after deleting vectors and compact - \#1521 Make cache_insert_data take effect in-service - \#1525 Add setter API for config preload_table Loading
core/src/index/knowhere/knowhere/index/vector_index/nsg/NSG.cpp +1 −6 Original line number Diff line number Diff line Loading @@ -698,13 +698,8 @@ NsgIndex::Search(const float* query, const unsigned& nq, const unsigned& dim, co int64_t* ids, SearchParams& params) { std::vector<std::vector<Neighbor>> resset(nq); if (k >= 45) { params.search_length = k; } TimeRecorder rc("NsgIndex::search", 1); // TODO(linxj): when to use openmp if (nq <= 4) { if (nq == 1) { GetNeighbors(query, resset[0], nsg, ¶ms); } else { #pragma omp parallel for Loading
core/src/wrapper/ConfAdapter.cpp +3 −1 Original line number Diff line number Diff line Loading @@ -225,7 +225,9 @@ NSGConfAdapter::CheckTrain(milvus::json& oricfg) { // auto tune params oricfg[knowhere::IndexParams::nlist] = MatchNlist(oricfg[knowhere::meta::ROWS].get<int64_t>(), 8192, 8192); oricfg[knowhere::IndexParams::nprobe] = int(oricfg[knowhere::IndexParams::nlist].get<int64_t>() * 0.01); int64_t nprobe = int(oricfg[knowhere::IndexParams::nlist].get<int64_t>() * 0.1); oricfg[knowhere::IndexParams::nprobe] = nprobe < 1 ? 1 : nprobe; return true; } Loading