How to build a local “Google/Exa” search for a Mac (files, Claude/Codex sessions, browser, mail)
Which ready-made tools for local personal search are worth taking or learning from (November 2026), which embedding model for Polish + English, sqlite-vec or LanceDB, how to save the text of pages one reads, and what embeddings in the cloud cost.
There is no ready-made tool that covers all of the author's sources at once (Claude and Codex sessions, the Library, code, PDFs, mail, browsers). We build our own, but on proven patterns. The best pattern of architecture is Tobi Lütke's qmd: BM25, vectors and LLM re-ranking computed locally, and MCP over HTTP as one long-lived process c1 c3. The project is large and active c4. Its default embedding model copes poorly with languages other than English c2.
For Claude and Codex sessions the best documented is claude-chat-search. It is the only one that measures quality on its author's queries: a change of model raised MRR from 0.52 to 0.65 c8, and bigger models did no better c9. From Codex it takes the conversation alone c10, and a query through the daemon takes about 0.2 s c11. The project is young and has few users, so we take its data and rules, not its code. Alternatives to learn from:
Rejected:
Khoj:
- the cloud was shut down, and the team works on other products c17.
- a source-available licence and a different aim, that is recording the screen instead of an index of content c18.
- technically strong and has an MCP c5 c7, but the model weights are under a non-commercial licence, and work for the author's company is commercial use c6.
- mature, but full-text only c23.
Embeddings for Polish + English. On Polish tasks the OPI models win. PolDense sets the best ratio of quality to size c24, and EuroDense-435M is the best among the multilingual models below 1B parameters c25 c27. Both are under the Gemma licence c28. Qwen3-Embedding-4B has PL 59.19 and EN 63.57 c26 and allows the vector to be shortened c29. In PL-MTEB, which covers all types of task, Qwen3-8B leads c30. There are no reliable throughput measurements on Apple Silicon: the only numbers come from small repositories c31. The decision: measure 3–4 candidates on about 100 queries of our own from the transcripts before choosing a model. claude-chat-search ran the same test c8 c9.
The vector store:
sqlite-vec:
At the author's scale one SQLite file with FTS5 and sqlite-vec in flat mode is enough. Our measurement of 19 November gives about 20–30 thousand chunks per month of sessions, not hundreds of thousands. The first version of this card counted the text together with tool output. LanceDB pays off only above about 1M chunks.
Measurements and a code review of 19 November (our own, with no outside source):
Deletion and archive.
- Claude Code deletes transcripts after 30 days. That is why since 19 November they go to an archive […] (zstd, 4.6×). Codex deletes nothing: it keeps sessions from August 2025 on and compresses the old ones itself.
- About half of the Claude sessions have
entrypoint: sdk-cliand contain a single prompt written by a program. In Codex their counterpart issource=exec. In the index they have to be marked as “author: program”. - Patterns alone let through 9 of 20 key formats, among them Stripe, Bearer and passwords in URLs. The literal values of known keys have to be masked before the patterns.
- The code is safe: a unix socket with mode 0600 and no writing under
~/.claude. It does not suit our own tool, because it cuts out tool output, does not read zstd, does not mask secrets, and its re-ranker handles English only. It serves as a point of reference. - granite-311m: 25 chunks/s. EuroDense-435M: 10 chunks/s; it works only with transformers 4.56 and with the xformers switches off.
The text of pages one reads. In Chrome only MV3 extensions work now c39. The simplest path is SingleFile in auto-save mode c40, which sends the page to a REST Form API on a small service of one's own on localhost c41. Karakeep can do the same, but it is a heavier server stack c44. Promnesia runs locally c42, but it stores visits and context, not the full text. Omnivore is dead c43.
Claims
In our words
In the source's words
qmd combines BM25, vectors and LLM re-ranking, all locally on GGUF models.
QMD combines BM25 full-text search, vector semantic search, and LLM re-ranking—all running locally via node-llama-cpp with GGUF models.
github.com · T2
qmd's default embedding model has limited coverage of languages other than English; for multilingual corpora the README says to swap it.
This is useful for multilingual corpora (e.g. Chinese, Japanese, Korean) where `embeddinggemma-300M` has limited coverage.
github.com · T2
qmd has an MCP server over HTTP as a long-lived process, so as not to load the models for every client.
For a shared, long-lived server that avoids repeated model loading, use the HTTP transport
github.com · T2
qmd: 31,245 stars, last push on 18 November 2026 (GitHub API).
"stargazers_count": 31245, "watchers_count": 31245, "language": "TypeScript"
api.github.com · T1
Omni (Han Xiao) uses jina-embeddings-v5-omni through MLX-Swift on the GPU.
The embedding model is `jina-embeddings-v5-omni`, ported to MLX-Swift and running in-process on the GPU.
github.com · T2
The model weights in Omni are under the non-commercial CC-BY-NC-4.0 licence.
Model weights are under the upstream Jina license (CC-BY-NC-4.0).
github.com · T2
Omni exposes a local HTTP API with an MCP endpoint.
Settings > Serving exposes an HTTP API on `127.0.0.1:51234` with an MCP endpoint at `/mcp`.
github.com · T2
claude-chat-search measured the change of model to granite-311m-multilingual on 53 queries: MRR 0.52→0.65, recall@10 0.83→0.98.
session-level MRR of the full hybrid search went from 0.52 to 0.65 and recall@10 from 0.83 to 0.98
github.com · T2
In the same test Qwen3-Embedding-0.6B, embeddinggemma-300m and multilingual-e5-large did no better.
Qwen3-Embedding-0.6B, embeddinggemma-300m and multilingual-e5-large ranked no better
github.com · T2
From Codex sessions claude-chat-search indexes only the conversation, without tool output and injected context.
Codex indexing is deliberately conversation-only
github.com · T2
On a 1.4 GB index (5.7 thousand sessions, 114 thousand chunks) a search through the daemon takes a median of 0.2 s.
Measured on a 1.4 GB index (5.7k sessions, 114k chunks, granite-311m): median 0.2 s and p90 0.37 s per search through the daemon
github.com · T2
claude-history (raine) also indexes tool output in its search.
across all conversations with field-aware relevance scoring, prefix matching, word boundary awareness, and tool output indexing
github.com · T2
claude-history also supports Codex.
Despite the name, `claude-history` also supports Codex
github.com · T2
memex (yaugenst) searches the transcripts of Claude Code, Codex and OpenCode, for humans and agents.
Fast transcript search for humans & agents. Supports Claude Code, Codex CLI & OpenCode
github.com · T2
obliscence uses FTS5 with the Porter stemmer (English) and sqlite-vec with arctic-embed-s.
FTS5 with Porter stemming for keyword search, sqlite-vec with snowflake-arctic-embed-s (384-dim) for semantic search.
github.com · T2
obliscence indexes a session through the SessionEnd and PreCompact hooks.
`SessionEnd` — indexes the conversation when a session ends cleanly
github.com · T2
Khoj shut down its cloud and the team works on other products.
We're focusing our efforts on
app.khoj.dev · T2
screenpipe moved from MIT to a source-available licence with paid commercial use.
The screenpipe source moves from the MIT license to the Screenpipe Commercial License, a source-available license.
screenpipe.com · T2
Apple Intelligence (27.x) does not support Polish.
Apple Intelligence is available with support for these languages: English, Danish, Dutch, French, German, Italian, Norwegian, Portuguese, Spanish, Swedish, Turkish, Vietnamese, Chinese (simplified), Chinese (traditional), Japanese, and Korean.
support.apple.com · T1
Spotlight in macOS 27 is semantic.
The Mac’s system-wide search is now semantic
macworld.com · T3
SpotlightSearchTool searches only the Spotlight index or the files of its own app.
it uses the search tool to run queries against your app’s Spotlight index or indexed files.
developer.apple.com · T1
By default SpotlightSearchTool uses Private Cloud Compute models.
performs queries against your app’s Spotlight index using all available search techniques and *Private Cloud Compute* (PCC) models designed for Apple Intelligence
developer.apple.com · T1
Recoll is a full-text search engine on Xapian, GPL, with a version for macOS.
Versions are available for [Linux](https://www.recoll.org/pages/download.html), [MS Windows](https://www.recoll.org/pages/recoll-windows.html) and [MacOS](https://www.recoll.org/pages/recoll-macos.html).
recoll.org · T2
The PolDense family sets the quality/size frontier; PolDense-1B beats models of up to 9B parameters on Polish tasks.
poldense-1b outperforms the evaluated retrievers with up to 9b parameters, while the poldense family forms the pareto frontier across model sizes
arxiv.org · T1
EuroDense has the best aggregate result among the multilingual models in the test.
EuroDense achieves the best aggregate performance among the evaluated multilingual
arxiv.org · T1
PIRB: Qwen3-Embedding-4B has PL 59.19 and EN 63.57.
| Qwen3-Embedding-4B | 59.19 | 68.16 | 64.01 | 66.98 | 72.05 | 67.93 | 58.68 | 62.88 | 63.57
arxiv.org · T1
EuroDense is the best among the models below 1B parameters.
Among the evaluated models below 1B parameters, EuroDense ranks first in both task-averaged and language-averaged performance
arxiv.org · T1
EuroDense is under the Gemma licence.
arxiv: 2609.12913 License: gemma
huggingface.co · T1
Qwen3-Embedding-0.6B allows the vector to be shortened (MRL) from 32 to 1024 dimensions.
supports user-defined output dimensions ranging from 32 to 1024
huggingface.co · T1
PL-MTEB (all types of task): Qwen3-Embedding-8B is the best overall.
The Qwen3-Embedding-8B model achieved the best overall score for the entire benchmark
arxiv.org · T1
A throughput measurement (a repository with 3 stars): MLX Qwen3-Embedding-0.6B 337 texts/s, 5× faster than Ollama.
| **MLX Qwen3-Embedding-0.6B** | **1.8s** | **337** | **5x faster** |
github.com · T4
sqlite-vec: ANN indexes only in an alpha version.
new ANN indexes: rescore, ivf (experimental, not enabled), and DiskANN
github.com · T1
sqlite-vec, 1M 1024-d vectors: a flat search takes 590 ms per query, 3.85 GB.
| Flat index | 27.4 | 3.85 | 590ms (baseline) | 1.0 |
github.com · T2
LanceDB: full-text search is native in Lance.
The current FTS implementation is Lance-native.
docs.lancedb.com · T1
LanceDB: the hybrid goes through RRF by default.
Reciprocal Rank Fusion (RRF) is the default.
docs.lancedb.com · T1
The list of languages with stemming in LanceDB FTS does not include Polish.
Stemming and language-specific stop-word removal support Arabic, Danish, Dutch, English, Finnish, French, German, Greek, Hungarian, Italian, Norwegian, Portuguese, Romanian, Russian, Spanish, Swedish, Tamil, and Turkish.
docs.lancedb.com · T1
Lance recommends IVF_RQ: compact storage without PQ configuration.
for most vector-search workloads. It provides compact storage and multi-bit distance estimates without requiring PQ sub-vector configuration
lance.org · T1
DuckDB vss: the HNSW index has to fit in RAM.
The index itself is not buffer managed and must be able to fit into RAM memory
github.com · T1
Chrome 138 disabled MV2 extensions on all channels.
With Chrome 138 all users on all channels of Chrome have now Manifest V2 extensions disabled.
developer.chrome.com · T1
SingleFile in auto-save mode saves every page that is loaded.
With auto-save active, pages are automatically saved every time after being loaded
github.com · T1
SingleFile can send a page to a REST Form API.
upload to a REST Form API
docs.linkwarden.app · T1
Promnesia runs locally.
It runs locally and you don't have to expose it to the outside.
The Omnivore cloud was shut down in November 2024.
The Cloud application was deprecated in November of 2024.
github.com · T1
Karakeep: its own extension has experimental client-side capture built on SingleFile.
client-side crawling as an experimental feature (powered by SingleFile under the hood)
docs.karakeep.app · T1
OpenRouter: gemini-embedding-2 costs 0.20 USD per 1M tokens.
Price $0.20/M tokens Context
openrouter.ai · T1
gemini-embedding-2 takes up to 8192 tokens and has a vector dimension from 128 to 3072.
It supports input context up to 8,192 tokens and flexible output dimensions from 128 to 3,072
openrouter.ai · T1