Essay ·
Why I don't use a vector database for my AI's memory
I tested embeddings on my own vault with 83 real queries: they hit 14.5% of them against 42.2% for my keyword search. What I measured, what I didn't, and how MemoryBrain searches.
Short answer: in my vault, an embeddings channel over the notes' descriptions hit 14.5% of my real queries. My keyword search hit 42.2%. That is why my memory does not live in a vector database: not the retrieval, which I measured, and not the storage, which I decide by control. Here is what I measured, with its limits.
How it started
I saw a post about a memory system for LLMs with spectacular numbers. I sent the screenshot to Claude and asked: "What does this add to my memory brain?"
And I told Claude what I thought: all my competitors end up using vector databases, and I think semantic search is better at finding more things, but something works very badly, and it's that you want to keep control.
More things found against more control. That was the doubt.
What I measured
I prefer to search by words, and to keep the search terms system I already have. My vault has had an embeddings channel switched off since September, because with the whole note it came out worse. One idea was left untested, mine: maybe it would make sense for the notes' descriptions to be embedded.
I asked for an eval that took into account the cost and the infrastructure I would have to set up. It used 83 of my real queries, frozen, each with the notes I used. It embedded the description of 25,519 documents with a small model that runs locally: 403 seconds, no API. It tested that channel alone, with the queries split into pieces, and blended with my search. The question: does any note I used show up in the top 10?
The description embeddings, alone, hit 14.5% of the queries. My search hit 42.2%. Blended at full weight they lose about 6 points, and at half weight they change nothing: they rescue no query that my search misses. My queries are long and mix several questions, and one vector per query averages everything out. It is the same failure I measured in September with the whole note.
Along the way it tested another lever: how many candidates each internal list of the search contributes before they are fused. Going from 20 to 50 raises the top-10 hit rate from 42.2% to 50.6%. But I read the top 20, and there it goes from 51.8% to 54.2%, with the interval crossing zero. I haven't applied it.
I asked: if I read 50 notes instead of 20, there is a token cost, right? No. It is an internal depth of the engine, and the agent receives the same list.
That is why I don't use vector databases to store and retrieve information.
What this does not measure
It is 83 queries, one vault, a small model, and a ground truth that comes from my own usage log. And it measures retrieval. The storage I decide by control, not by a measurement.
How MemoryBrain searches
MemoryBrain uses no vector database and no embeddings. It searches with BM25 over the title, the terms, the body and the source of each note. On top of that it adds the match of two or more words of the query in title and terms and, when the AI model sends them, its rephrasings of the query, and fuses the rankings. If the model does not send them, it searches with BM25 and metadata alone.
In a test on November 7, with 30 paraphrased questions over a brain of 45 notes, BM25 alone got 12 right in first position. With the model's rephrasings, 22. With rephrasings and metadata, 23. It is a small brain and a test of mine, not a benchmark.
The neighbouring notes in the graph do not enter the ranking: in that same test, with them the first-position hit rate dropped from 23 to 0, because in a small, single-topic brain every note is a neighbour of every other. They go separately.
That is why I don't use vector databases to store and retrieve information.
Your judgment, inside your AI
MemoryBrain keeps what you read, decide and learn, with its source, and hands it to ChatGPT and Claude when they need it.
