mirror of
https://gitee.com/milvus-io/milvus.git
synced 2026-01-07 19:31:51 +08:00
enhance: update knowhere version and IsAdditionalScalarSupported interface (#39573)
Signed-off-by: chasingegg <chao.gao@zilliz.com>
This commit is contained in:
parent
1d54ff157f
commit
c1794cc490
@ -159,7 +159,11 @@ VectorDiskAnnIndex<T>::Build(const Config& config) {
|
||||
}
|
||||
|
||||
auto opt_fields = GetValueFromConfig<OptFieldT>(config, VEC_OPT_FIELDS);
|
||||
if (opt_fields.has_value() && index_.IsAdditionalScalarSupported()) {
|
||||
auto is_partition_key_isolation =
|
||||
GetValueFromConfig<bool>(build_config, "partition_key_isolation");
|
||||
if (opt_fields.has_value() &&
|
||||
index_.IsAdditionalScalarSupported(
|
||||
is_partition_key_isolation.value_or(false))) {
|
||||
build_config[VEC_OPT_FIELDS_PATH] =
|
||||
file_manager_->CacheOptFieldToDisk(opt_fields.value());
|
||||
// `partition_key_isolation` is already in the config, so it falls through
|
||||
|
||||
@ -287,8 +287,11 @@ VectorMemIndex<T>::Build(const Config& config) {
|
||||
|
||||
auto opt_fields = GetValueFromConfig<OptFieldT>(config, VEC_OPT_FIELDS);
|
||||
std::unordered_map<int64_t, std::vector<std::vector<uint32_t>>> scalar_info;
|
||||
if (opt_fields.has_value() && index_.IsAdditionalScalarSupported() &&
|
||||
config.value("partition_key_isolation", false)) {
|
||||
auto is_partition_key_isolation =
|
||||
GetValueFromConfig<bool>(config, "partition_key_isolation");
|
||||
if (opt_fields.has_value() &&
|
||||
index_.IsAdditionalScalarSupported(
|
||||
is_partition_key_isolation.value_or(false))) {
|
||||
scalar_info = file_manager_->CacheOptFieldToMemory(opt_fields.value());
|
||||
}
|
||||
|
||||
|
||||
@ -14,7 +14,7 @@
|
||||
# Update KNOWHERE_VERSION for the first occurrence
|
||||
milvus_add_pkg_config("knowhere")
|
||||
set_property(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR} PROPERTY INCLUDE_DIRECTORIES "")
|
||||
set( KNOWHERE_VERSION 7dc867d3 )
|
||||
set( KNOWHERE_VERSION fcd447d )
|
||||
set( GIT_REPOSITORY "https://github.com/zilliztech/knowhere.git")
|
||||
message(STATUS "Knowhere repo: ${GIT_REPOSITORY}")
|
||||
message(STATUS "Knowhere version: ${KNOWHERE_VERSION}")
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user