Implement embeddings, semantic search, and duplicate review #23
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Goal
Implement project-isolated local semantic indexing and expose similar posts, tag suggestions, semantic search, and duplicate review through working UI.
Current state
Required behavior
Implementation notes
Acceptance criteria
Implemented and pushed in
e876426. Added the real multilingual-e5-small ONNX backend with lazy local caching, query-prefix preprocessing, 384-dimensional normalized vectors, Core ML/DirectML acceleration with CPU fallback, project-isolated USearch HNSW indexes and durable SQLite BLOB cache. Added hash-skipping lifecycle hooks, batched cancellable backfill/reindex, debounced persistence, corrupt-index recovery, deletion/project cleanup, semantic sidebar search, similar-post/link ranking, tag suggestions, duplicate detection/pagination/canonical single and 100-row batch dismissals, localized native duplicate-review UI, menu actions, scripting API, metadata diff/repair, filesystem rebuild integration, migrations, docs, and plan updates. Neutral review compared the issue, bDS2 implementation/tests, specs/embedding.allium, and DuplicatesSurface in specs/editor_misc.allium; review fixes included stable-label upserts, enable-time backfill, managed progress/cancellation, cache cleanup, rebuild ordering, true batch inserts, and native-provider feature activation. Verification: real multilingual/cache model release test passed; cargo fmt --all -- --check passed; cargo build --workspace passed; cargo test --workspace passed (core 441 passed/3 intentionally ignored plus all UI/CLI/MCP/editor/integration/doc tests); cargo clippy --workspace --all-targets -- -D warnings passed; allium check specs returned zero findings.