Problem
Most organisations have this problem: the knowledge exists, and nobody can find it. It sits in long documents, recorded talks and slide decks, and search only reads the titles.
I had the same problem with my own library of articles, research papers, case studies and videos, so I built the fix there first. Brain runs on my own 3,644 notes. The design is the one a company knowledge base needs: read every format, index the content and not the title, answer with sources, and measure whether people can find things.
What I built
A pipeline that reads what I save, so I don’t have to remember where I saw it.
- Takes in articles, research papers, case studies, videos and posts.
- Reads what search can’t: speech is transcribed on the Mac with Whisper, and text on slides is read with Apple Vision.
- Local models (Ollama) write a summary and tags for every save with enough text to summarise.
/askanswers a question from my saved notes, and cites the sources it used.
How I measured it
Search quality is measured against a fixed set of 50 test queries, so every change is compared on the same questions. A local model wrote each query from a saved note, as a stand-in for how I would half-remember it. It is not a study of real searches.
Before and after the search rebuild, both scored on 9 November 2026:
| Metric | Before | After | Gain (95% range) |
|---|---|---|---|
| hit@5 (the right note in the top 5) | 42% | 68% | +26 points (10 to 42) |
| hit@1 (the right note first) | 22% | 40% | +18 points (2 to 34) |
At hit@5, 17 queries went from missed to found and 4 went the other way. With only 50 queries the ranges are wide, and the hit@1 gain is only just clear of zero.
The rebuilt search combines keyword search (BM25) with vector search on a new embedding model. On 12 November I scored each method on its own:
| Search method | hit@5 |
|---|---|
| The old search | 38% |
| Keyword only | 52% |
| Vector only | 56% |
| Both combined | 64% |
The index had grown since the first run, so the combined score that day was 64%, not 68%. That is why these numbers carry their dates.
Guardrails
- No summary from too little text. If a source has fewer than 400 characters of text, Brain skips the AI summary instead of guessing.
- Missing saves raise an alert. A daily check compares what I saved with what arrived, and alerts my phone about anything missing.
What I changed after launch
Brain started on n8n in April 2026. On 18 June, a security change to the SSH bridge that n8n used for transcription began rejecting every command. n8n recorded each failure as data, so its runs kept finishing as success: 676 of them in the last two weeks alone. For ten weeks no video or reel transcript reached Brain. Articles kept arriving, which hid the gap, and all eight of my watchdog checks passed. I found out by accident on 29 August, when I searched for something I had saved and it wasn’t there.
The checks were testing stand-ins for success: a job ran, a binary existed, an exit code came back. None of them tested the outcome. I replaced them with checks on what actually arrived, then rebuilt the pipeline as a tested Python package and retired n8n on 4 September 2026. All 176 items in the pipeline’s ledger from before that cutover are still there. As of November 2026 the package has 1,476 tests and 524 commits.
What’s next
- Raise hit@5 to my 75% target. It was 64% on 12 November.
- Extend audio transcription to more video sources.