Local EmbeddingGemma on CPU hit 1.00 recall@5 on our 64 questions. BM25 reached 0.91.
EdgeEmbed runs EmbeddingGemma 300M on ONNX Runtime with sqlite-vec in one SQLite file. On our synthetic 39-file corpus, q4 vector search found every answer in the top 5.
By David Discua
Measured in the lab
- 1.00
- recall@5, q4 vector
- 0.91
- recall@5, BM25
- 33.8 ms
- query p50, q4 vector
- 222.2 MB
- index + model on disk
- Model weights pinned to one revision with SHA-256 per file
- Paraphrase questions: BM25 recall@5 0.74, q4 vector 1.00
- Every hit carries a path, page and character citation
- Hybrid fusion scored below plain vector search
- Cloud embedding baseline not run in this lab
From reports/bench.json · run on October 21, 2026. 39 synthetic files (30 Markdown, 3 PDFs, 6 PNGs), 64 labelled questions; onnxruntime 1.23.2; model revision 5090578d; Intel Core i7-9750H CPU
How it is wired
01/03You point it at a folder of docs, PDFs and screenshots.
EdgeEmbed is our starter for private retrieval over a folder of docs, PDFs and screenshots. It runs Google's EmbeddingGemma 300M on ONNX Runtime with no PyTorch, and keeps chunks, vectors and a BM25 index in one SQLite file. On our synthetic 39-file corpus with 64 labelled questions, q4 vector search put the right document in the top 5 for every question, against 0.91 for BM25. The catch is that the corpus is small and easy for a semantic model, and the cloud baseline was not run in this lab.
The catch
A recall near 1.00 here means the corpus is easy, not that retrieval is solved. Sixty-four hand-written questions over 39 files are enough to compare arms on one CPU and not enough to rank models in general.
Hybrid fusion scored lower than plain vector search on this set (0.89 recall@1 against 0.97), so the CLI defaults to vector. Your corpus may flip that. The int8 export matched q4 on recall but ran at 182.5 ms p50 per query and peaked at 1,712 MB of RAM, against 33.8 ms and 569 MB for q4.
Images are searchable only through OCR text, since EmbeddingGemma is text-only. OCR mistakes stay in the index (the fixture OCR read "Syncfailed"). The ONNX export was not compared numerically against the original PyTorch checkpoint. The optional cloud arm (gemini-embedding-001) is tested against a fake transport, and the live path was not run in this lab, so there are no cloud numbers.
What we ran (keyless)
uv sync --frozen --all-extras
uv run edgeembed fetch-model
uv run edgeembed ingest fixtures/corpus
uv run edgeembed query "What does error QF-417 mean?" -k 3
uv run python scripts/report.py
From reports/bench.json, run on October 21, 2026 on an Intel Core i7-9750H CPU:
| Arm | Mode | R@1 | R@5 | MRR@10 | Query p50 / p95 ms | Peak RSS MB | Disk MB |
|---|---|---|---|---|---|---|---|
| SQLite FTS5 BM25 | bm25 | 0.77 | 0.91 | 0.83 | 0.3 / 0.5 | 334 | 0.2 |
| Gemma q4, 768-d | vector | 0.97 | 1.00 | 0.98 | 33.8 / 91.2 | 569 | 222.2 |
| Gemma q4, 768-d | hybrid | 0.89 | 0.95 | 0.92 | 29.6 / 51.8 | 569 | 222.2 |
| Gemma q4, 256-d | vector | 0.91 | 1.00 | 0.95 | 33.1 / 64.0 | 567 | 220.0 |
| Gemma int8, 768-d | vector | 0.98 | 1.00 | 0.99 | 182.5 / 245.9 | 1712 | 334.4 |
The gap sits in the paraphrase questions. BM25 reached 0.74 recall@5 on them, and every Gemma vector arm reached 1.00. On image, lexical and PDF questions all arms hit 1.00. Peak RSS includes the OCR engine, which every arm loads.
How it is wired
Ingest reads Markdown and text, PDF text per page with pypdf, and PNG or JPG text through RapidOCR on ONNX Runtime. Chunks keep page numbers and character offsets. The model uses its card's retrieval prompts, vectors go into a sqlite-vec vec0 table with cosine distance, and FTS5 holds the BM25 index. Re-ingest only re-embeds changed files. edgeembed serve adds a read-only HTTP API on 127.0.0.1 with no ingest endpoint.
Minilab (open source)
EdgeEmbed is our own lab, Apache-2.0 and written in Python, at SkilledDragonCorp/edgeembed-rag. The weights come from the ungated onnx-community/embeddinggemma-300m-ONNX export under the Gemma Terms of Use, and storage uses asg017/sqlite-vec (8,209 stars, Apache-2.0, C, as of October 24, 2026). Run uv run edgeembed ingest on your own folder, then uv run python scripts/report.py to rebuild reports/bench.json.
Run it yourself
SkilledDragonCorp/edgeembed-rag
Clone, install and run the report with no API keys. The numbers above are what that run writes.
uv sync --frozen --all-extras && uv run edgeembed fetch-model && uv run edgeembed ingest fixtures/corpusSkilledDragon is not affiliated with or endorsed by Google, Hugging Face, Microsoft, RapidAI or the sqlite-vec authors. Gemma is a trademark of Google LLC. Numbers are from our own keyless lab run on a synthetic corpus; re-run the benchmark before relying on them.
All labs