Reintroduce arroy and support for dumpless upgrade from previous versions

This commit is contained in:
Clément Renault
2025-07-29 18:00:29 +02:00
committed by Louis Dureuil
parent a7cd6853db
commit 27550dafad
16 changed files with 94 additions and 39 deletions

View File

@@ -1,4 +1,4 @@
use hannoy::distances::Cosine;
use arroy::distances::Cosine;
use heed::RwTxn;
use super::UpgradeIndex;
@@ -25,13 +25,12 @@ impl UpgradeIndex for Latest_V1_13_To_Latest_V1_14 {
progress.update_progress(VectorStore::UpdateInternalVersions);
let rtxn = index.read_txn()?;
// hannoy::upgrade::from_0_5_to_0_6::<Cosine>(
// &rtxn,
// index.vector_hannoy.remap_data_type(),
// wtxn,
// index.vector_hannoy.remap_data_type(),
// )?;
unimplemented!("upgrade hannoy");
arroy::upgrade::from_0_5_to_0_6::<Cosine>(
&rtxn,
index.vector_store.remap_types(),
wtxn,
index.vector_store.remap_types(),
)?;
Ok(false)
}