You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Three quick-fix issues affecting API correctness and production stability:
1. Embedding vector leaked in JSON output
Memory.embedding (768 floats = 3KB per memory) is serialized in --json output for get, recall, search, list, aging preview, and import.
Fix: Add #[serde(skip_serializing)] on the embedding field in crates/uteke-core/src/memory/types.rs.
2. expect() panic in VectorIndex creation
Index::new(&options).expect("Failed to create usearch index") in crates/uteke-core/src/memory/vector.rs:251 will abort the entire process if usearch fails to allocate.
Fix: Return Result<> instead of panicking. Propagate error to caller with proper handling.
3. import() does not persist vector index
Uteke::import() inserts items one at a time into the vector index but never calls index.save(). If the process crashes mid-import, all imported vectors are lost. Contrast with remember() which calls index.save().ok() after every insert.
Fix: Call index.save() after the import loop completes (or batch-save periodically for large imports).
Acceptance Criteria
--json output excludes embedding vectors (verified with get and recall)
VectorIndex::create_index() returns Result instead of using expect()
import() persists the vector index after completion
Activity
ajianaz commentedon Jun 2, 2026
Fixed in #146 — skip_serializing on embedding, import() persists index, better panic message
fix: v0.0.6 patch & hardening (#146)
release: initial sync — main catches up to develop (#171)
fix: v0.0.6 patch & hardening (#146)