Skip to content

Conversation

orchistro
Copy link

@orchistro orchistro commented Sep 4, 2025

Fixes #656

Usage

using namespace unum::usearch;

auto cfg = index_dense_config_t{};
cfg.enable_key_lookups = false;

auto idx = index_dense_gt<uint64_t, uint32_t>::make({}, cfg, false); // <- here!
auto res = idx.view({buffer, buffer_size});

idx.change_metric(metric_punned_t{dimension,
                                  metric_kind_t::cos_k,
                                  scalar_kind_t::f32_k});
idx.change_expansion_search(ef_search);

auto search_res = idx.search(query, wanted_cnt);

@ashvardanian ashvardanian added the v3 Breaking changes planned for v3 label Sep 23, 2025
@ashvardanian
Copy link
Contributor

Thank you, @orchistro! I've merged it into the working draft of v3 🤗

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
v3 Breaking changes planned for v3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Feature: provide a way to disable key lookups when loading index
2 participants