WADA-DEV(7) $ /en/blog/zettelkasten-semantic-search-not-needed/

NAME

zettelkasten-semantic-search-not-needed — I gave up adding semantic search to my Zettelkasten four times: Claude Code was doing fine with grep

SYNOPSIS

Four times I started adding embedding-based semantic search to my Zettelkasten-style knowledge base (about 1,300 notes) and stopped. Counting 847 searches in my Claude Code session logs, grep came back empty 1.4% of the time, and 35% of the searches already had Claude Code OR-ing synonyms on its own.

DESCRIPTION

I’ve decided not to add semantic search (search over embedding vectors) to my knowledge base. As long as Claude Code is the one searching my notes, grep is enough.

When I counted misses in my Claude Code session logs, only 12 of 847 searches over the knowledge base returned nothing. Claude Code handles rephrasing inside the search pattern itself, and the links between notes catch the rest.

This is for anyone who lets an AI search their own notes or knowledge base and is wondering whether to add RAG or semantic search. Mine is a Zettelkasten-style knowledge base of about 1,300 notes, plain Markdown files in git, and Claude Code searches it with grep / rg (as of November 2026).

Four tries, four stops

At first I just wanted to try it. The word RAG caught my eye, and I had a vague idea that it might make my knowledge base stronger.

I came back to it several times after that. Once I indexed 145 notes in 23 seconds with bge-m3 on my home GPU server. Another time I built a vector DB of 974 notes with an HTTP server in front of it. I also tried qmd and ran a benchmark against grep.

And each time I stopped. The reason was always the same: building the index every time was a chore, and I couldn’t tell whether it was any more useful than grep. I never kept the benchmark results anywhere. When I was about to start a fifth attempt, I realized that if I wanted a comparison, I could just count how search is actually used.

Counting misses in the session logs

Claude Code keeps conversations and tool calls as JSONL under ~/.claude/projects/. I had Claude Code tally them. It pulled out the grep / rg calls against the knowledge base from the Bash commands, checked whether each result was empty, and whether the next call searched again with different words. The logs covered roughly the last two months.

searches over the knowledge base 847 (266 sessions)
returned nothing 12 (1.4%)
re-searched with other words 4
found by rephrasing 2

The two rescued by rephrasing went from 「謎の(丘|おか)」 (“mysterious hill”) to 「丘|高まり|塚」 (hill / rise / mound), and from 「北海道旅行」 (“Hokkaido trip”) to 「旅行」 (“trip”).

Even before seeing the numbers, I didn’t expect grep to miss much. The notes are linked to each other, so a few searches always get me there, and they carry tags too. grep doesn’t have to hit the right note first: one hit on a nearby note is enough, and the links lead the rest of the way. I wrote about how I structure folders, tags and index notes in Zettelkasten operation log part 1: design. Only 2 of about 1,000 notes had no incoming link, and there were zero broken links. Broken links are checked with lychee on every commit.

Claude Code was already rephrasing

I also looked at what the patterns contained. Of the 847 searches, 35% OR-ed together three or more terms, and 16% had five or more.

goodhart|グッドハート|chesterton|チェスタトン
data platform|データ基盤|dataplatform|data-platform

Claude Code lists the spelling variants across Japanese and English, and the synonyms, by itself. The rephrasing that embeddings are supposed to do, the searcher was already doing on the spot.

Where semantic search pays off

The usual example of semantic search doing well is a support FAQ or an e-commerce search box: the user types “my package never arrived” and the document says “shipment lost in transit.” Side by side:

Support FAQ / e-commerce searchMy knowledge base
Writer and searcherdifferent peoplethe same (me)
Vocabulary gaplargesmall
Who searchesa person who types once and leavesClaude Code, which retries on a miss
Who rephrasesno one, so embeddings do itClaude Code, by OR-ing terms
Missesmany1.4%

I think semantic search beats grep when the writer’s and the searcher’s vocabulary differ and there is no one to rephrase the query. Neither holds for my knowledge base.

Claude Code itself reportedly used a local vector DB early on and switched to repeated grep. Relaying what its creator Boris Cherny said on a podcast, several posts give the reasons as the index going stale and one more system to maintain. Those are nearly the same reasons I stopped four times.

I’m the only one searching this box

A Zettelkasten is a box of notes for my own thinking, and basically nobody else searches it. No one with different vocabulary is coming, so the conditions under which semantic search pays off probably won’t arrive.

So my conclusion: keeping the notes properly maintained is easier. Add semantic search and syncing the vectors is still a chore. It is cool, though. These days I spend the effort on keeping links and tags from breaking.

SEE ALSO

AUTHOR

Kohei Wada, software engineer. I build things to try out ideas and write up the results here. wada-dev · about

sponsor: If this helped, you can support me on GitHub Sponsors

COMMENTS