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
feat: upgrade embedding model to bge-small-en-v1.5
Replaces all-MiniLM-L6-v2 (256 token context, MTEB ~60th) with
bge-small-en-v1.5 (512 token context, MTEB ~30th). Same 384
dimensions — no migration or re-index schema change needed.
Key improvement: chunks up to 512 tokens are now fully embedded
instead of silently truncated at 256. This fixes a quality issue
where the second half of larger chunks was invisible to semantic
search.
Trade-off: model download grows from 23MB to 127MB (one-time).
Users must delete ~/.engraph/models/ and run engraph index --rebuild
after upgrading.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
-`chunker.rs` — smart chunking with break-point scoring algorithm. Finds optimal split points considering headings, code fences, blank lines, and thematic breaks. `split_oversized_chunks()` handles token-aware secondary splitting with overlap
11
11
-`docid.rs` — deterministic 6-char hex IDs for files (SHA-256 of path, truncated). Shown in search results for quick reference
12
-
-`embedder.rs` — downloads and runs `all-MiniLM-L6-v2` ONNX model (384-dim). SHA256-verified on download. Uses `ort` for inference, `tokenizers` for tokenization. Implements `ModelBackend` trait. **Not `Send`** — all embedding is serial
12
+
-`embedder.rs` — downloads and runs `bge-small-en-v1.5` ONNX model (384-dim, 512 token context). SHA256-verified on download. Uses `ort` for inference, `tokenizers` for tokenization. Implements `ModelBackend` trait. **Not `Send`** — all embedding is serial
13
13
-`model.rs` — pluggable `ModelBackend` trait, model registry, and `parse_model_spec()`. Enables future model swapping without changing consumer code
Copy file name to clipboardExpand all lines: README.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,7 @@ Plain vector search treats your notes as isolated documents. But knowledge isn't
20
20
-**MCP server for AI agents** — `engraph serve` exposes 13 tools (search, read, context bundles, note creation) that Claude, Cursor, or any MCP client can call directly.
21
21
-**Real-time sync** — file watcher keeps the index fresh as you edit in Obsidian. No manual re-indexing needed.
22
22
-**Smart write pipeline** — AI agents can create notes with automatic tag resolution, wikilink discovery, and folder placement based on semantic similarity.
23
-
-**Fully local** — ONNX embeddings (`all-MiniLM-L6-v2`, 23MB), SQLite storage, no network required after initial model download.
23
+
-**Fully local** — ONNX embeddings (`bge-small-en-v1.5`, 127MB), SQLite storage, no network required after initial model download.
0 commit comments