Home / use case

All of Hacker News in 5.3 GB, searched by meaning on a laptop CPU with EmbeddingGemma 2

At a glance
Hardware
Laptop with an Intel Core Ultra 7 265H; embedding ran on its integrated GPU with OpenVINO
Models & engines
EmbeddingGemma 2 for document embeddings, with an int8 version on the CPU for queries
Key gotcha
The prebuilt data block isn't published for download yet; you build it yourself from the public dataset, which takes about a week on a laptop.

What they built

DavidMC built HNTurboVec, an open-source (MIT) project that puts every Hacker News item from 2006 to 2026, 49.3 million stories and comments, into a single 5.34 GB file.

It searches the whole archive by meaning and by keywords, with filters for date, type and author, on a laptop CPU and inside a RAM budget you choose. The original text comes back byte for byte.

Everything ran on his laptop: the embedding of the archive, the compression and the searches.

Setup

  • Laptop with an Intel Core Ultra 7 265H; embedding ran on its integrated GPU with OpenVINO
  • EmbeddingGemma 2 for document embeddings, with an int8 version on the CPU for queries
  • A small language model that compresses the text to about 59 bytes per item
  • Python package hnz (Windows 10/11 x86-64 with AVX2, Python 3.10+), plus an hnz serve command for a local web page and JSON API

How it works

  1. Every item was embedded once at about 200 documents per second, which took about 4.5 days for all of HN.
  2. Each vector is stored as a 256-bit binary code: 32 bytes per item, 1.5 GB for the whole archive.
  3. At query time the query is embedded on the CPU, the 80 closest codes become candidates, and the best 50 are re-embedded from their decoded text and reranked.
  4. A BM25 word index handles keyword search, and the hybrid mode combines both.

Results & numbers

  • Precision at 10 of 0.32 within the query's month, versus 0.26 for keyword search alone (measured October 2026).
  • About 2.3 s for a cold hybrid search over all 49.3M items, keyword search about 0.2 s, inside a 2 GB RAM budget (the process used about 1.45 GB).
  • The 5.34 GB file holds the text, metadata, both indexes and the models; the raw JSON is 22.1 GB and the Parquet dump 12.4 GB.

Gotchas

  • The prebuilt data block isn't published for download yet; you build it yourself from the public dataset, which takes about a week on a laptop.
  • It currently targets Windows on x86-64 with AVX2.
  • The built-in server is meant for your own machine or a private network; put it behind a reverse proxy if you expose it.

Do it yourself

  1. Get the code from the HNTurboVec repository on GitHub and build the hnz wheel (maturin build --release in hnz/py), which pulls in OpenVINO.
  2. Build the block from the public Hacker News dataset following the README's build section.
  3. Open it from Python with a RAM budget and search, or run hnz serve to get a local search page.
pip install hnz-0.1.0-cp310-abi3-win_amd64.whl
hnz serve --root D:\hn\hn-2026-08.hnz --ram 2GB --threads 8 --port 8088
Source: DavidMC (Google AI Developers Forum) · Published 2026-10-29 · Added 2026-11-02. This write-up summarizes the original source; see it for full details.

Similar setups

Death Diary: switching off a local Gemma 3 1B's neurons night by night on a plain CPU

Toyyib Olamilekan had Gemma 3 1B write a diary entry each night on his CPU while he zeroed out more of its neurons, measuring what it forgot and when, then restored the weights so it could read its own decline.

Toyyib Olamilekan (DEV Community) · 2026-10-31

Link Séance: a local Gemma 3 writes grounded epitaphs for the dead links in your bookmarks

Abdul AmberNeel built a command-line tool that checks every link in a bookmarks file, finds the last living Wayback Machine snapshot of dead ones, and has a local Gemma 3 write a two-sentence epitaph only from what the archive kept.

Abdul AmberNeel (DEV Community) · 2026-10-31

Séance: local Whisper and Gemma 4 turn a grandmother's Malayalam voice notes into a searchable family archive

Clivin John built Séance, which transcribes and translates his grandmother's voice notes on his laptop, has Gemma 4 write memory cards, and answers questions only with her exact, verified words.

Clivin John (DEV Community) · 2026-10-31

PatchPal TinyAgent: a coding agent on a 4B model and a 6GB laptop GPU

WiseProbe adapted its PatchPal coding agent to run Gemma 4 E4B or Qwen3.5 4B through Ollama on a 6GB RTX A1000, using handoff-note compaction and capped file reads to work inside a 16K or 32K window.

WiseProbe Blog · 2026-11-25