mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-24 16:42:05 +00:00
Bump usearch to 2.4.1
This commit is contained in:
parent
5ca85674e6
commit
98c18eb341
2
contrib/usearch
vendored
2
contrib/usearch
vendored
@ -1 +1 @@
|
||||
Subproject commit 65b5d178f053d21480796d214b6ca04172d854a4
|
||||
Subproject commit e811aa8c1d07dfb3725e05fedb550f91fe44a324
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user