the num_vectors should be set in the set_feature_index