Allow fetching embedders from inside tests

This commit is contained in:
Louis Dureuil 2024-11-19 15:16:32 +01:00 committed by Clément Renault
parent 2c7a7fe4e8
commit 651c30899e
No known key found for this signature in database
GPG key ID: F250A4C4E3AE5F5F
5 changed files with 20 additions and 10 deletions

View file

@ -475,7 +475,7 @@ where
}
// used to update the localized and weighted maps while sharing the update code with the settings pipeline.
let mut inner_index_settings = InnerIndexSettings::from_index(index, wtxn)?;
let mut inner_index_settings = InnerIndexSettings::from_index(index, wtxn, Some(embedders))?;
inner_index_settings.recompute_facets(wtxn, index)?;
inner_index_settings.recompute_searchables(wtxn, index)?;
index.put_field_distribution(wtxn, &field_distribution)?;