Expand description
Index migration utilities
This module provides tools for migrating data between different index types and configurations, including upgrading from in-memory to disk-based indices, applying quantization, and changing index parameters.
§Features
- Index Type Migration: Convert between HNSW, DiskANN, and quantized indices
- Configuration Updates: Change index parameters with data preservation
- Batch Migration: Efficient bulk data transfer
- Progress Tracking: Monitor migration progress
§Example
use ipfrs_semantic::migration::{IndexMigration, MigrationConfig};
use ipfrs_semantic::hnsw::VectorIndex;
// Create a migration plan
let config = MigrationConfig {
batch_size: 1000,
verify_after_migration: true,
..Default::default()
};
let migration = IndexMigration::new(config);
// Migration would be performed here
// migration.migrate(source_index, target_index)?;Structs§
- Batch
Migration - Batch migration utilities
- Config
Migration - Configuration change migration
- Dimension
Migration - Dimension reduction migration
- Index
Migration - Index migration manager
- Metric
Migration - Metric migration utilities
- Migration
Config - Migration configuration
- Migration
Progress - Migration progress information
- Migration
Stats - Migration statistics