diff --git a/src/VecSim/index_factories/tiered_factory.h b/src/VecSim/index_factories/tiered_factory.h index 3d30ba889..b3ea4defc 100644 --- a/src/VecSim/index_factories/tiered_factory.h +++ b/src/VecSim/index_factories/tiered_factory.h @@ -35,9 +35,12 @@ VecSimIndex *NewIndex(const TieredIndexParams *params, HNSWIndexgetBlockSize()}; std::shared_ptr flat_allocator = VecSimAllocator::newVecsimAllocator(); + size_t dataSize = VecSimParams_GetDataSize(bf_params.type, bf_params.dim, bf_params.metric); + AbstractIndexInitParams abstractInitParams = {.allocator = flat_allocator, .dim = bf_params.dim, .vecType = bf_params.type, + .dataSize = dataSize, .metric = bf_params.metric, .blockSize = bf_params.blockSize, .multi = bf_params.multi,