Bump usearch to 2.4.1

This commit is contained in:
Robert Schulze 2024-08-12 19:50:53 +00:00
parent 5ca85674e6
commit 98c18eb341
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 8 additions and 3 deletions

2
contrib/usearch vendored

@ -1 +1 @@
Subproject commit 65b5d178f053d21480796d214b6ca04172d854a4
Subproject commit e811aa8c1d07dfb3725e05fedb550f91fe44a324

View File

@ -95,9 +95,14 @@ USearchIndexWithSerialization::USearchIndexWithSerialization(
unum::usearch::metric_kind_t metric_kind,
unum::usearch::scalar_kind_t scalar_kind,
UsearchHnswParams usearch_hnsw_params)
: Base(Base::make(unum::usearch::metric_punned_t(dimensions, metric_kind, scalar_kind),
unum::usearch::index_dense_config_t(usearch_hnsw_params.m, usearch_hnsw_params.ef_construction, usearch_hnsw_params.ef_search)))
{
unum::usearch::metric_punned_t metric(dimensions, metric_kind, scalar_kind);
unum::usearch::index_dense_config_t config(usearch_hnsw_params.m, usearch_hnsw_params.ef_construction, usearch_hnsw_params.ef_search);
config.enable_key_lookups = false; /// we don't do row-to-vector lookups
USearchIndex usearch_index = USearchIndex::make(metric, config);
swap(usearch_index);
}
void USearchIndexWithSerialization::serialize(WriteBuffer & ostr) const