Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 6e791c7

Browse files
ruvnetclaude
andcommitted
fix: Rebuild HNSW index from persisted storage on VectorDB init
This fixes issue #30 where search() returned empty results after application restart when using storagePath persistence. Changes: - Modified VectorDB::new() to rebuild index from persisted vectors - Uses storage.all_ids() and index.add_batch() for efficient rebuilding - Added regression test test_search_after_restart - Bumped version to 0.1.17 - Added ARM64 GNN npm package structure The fix loads all persisted vectors and rebuilds the HNSW index on initialization, ensuring search() works correctly after restart. Fixes #30 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent 8c3c9a3 commit 6e791c7

7 files changed

Lines changed: 216 additions & 46 deletions

File tree

Cargo.lock

Lines changed: 40 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ members = [
2626
"crates/ruvector-gnn",
2727
"crates/ruvector-gnn-node",
2828
"crates/ruvector-gnn-wasm",
29+
"crates/ruvector-attention",
2930
"examples/refrag-pipeline",
3031
"examples/scipix",
3132
]
3233
resolver = "2"
3334

3435
[workspace.package]
35-
version = "0.1.16"
36+
version = "0.1.17"
3637
edition = "2021"
3738
rust-version = "1.77"
3839
license = "MIT"

0 commit comments

Comments
 (0)