Home / use case

A local second brain for Markdown notes with Ollama, Whisper and SQLite

At a glance
Hardware
M4 Max with 64 GB of memory
Models & engines
Models qwen3.8:27b, qwen3.5:9b and qwen3.5:4b in Ollama; nomic-embed-text for embeddings
Whisper for dictation, Tailscale to reach the capture page from the phone
Key gotcha
A pasted newsletter clipping contained text telling the AI to add a to-do to wire money; with the first instructions the 9B and 4B filed it every time. Rewritten instructions stopped it in twelve runs, but the authors treat that as a measurement, not a promise.

What they built

The team wanted a second brain that takes a thought from a phone in a second and gives it back with its source, running on their own computer so nothing in their notes goes to an AI company. It works on a folder of Markdown notes (Obsidian, Logseq or plain files).

A phone page served by the computer over Tailscale captures typed or dictated notes; Whisper transcribes on the computer. An Ollama model proposes a title, tags, links and to-dos, and the program files a new note without changing any other note.

Search, cited question answering and a Sunday digest round it out, and every answer was read and graded by hand rather than trusted to an automatic grader.

Setup

  • M4 Max with 64 GB of memory
  • Models qwen3.8:27b, qwen3.5:9b and qwen3.5:4b in Ollama; nomic-embed-text for embeddings
  • Whisper for dictation, Tailscale to reach the capture page from the phone
  • One SQLite file outside the vault holding vectors and an FTS5 keyword table

How it works

  1. The model answers in a JSON schema Ollama enforces: links must be an enum of existing note titles, at most five simple tags, and due dates between the capture day and a year later.
  2. The capture's words are copied exactly, and if you edit it while the model is answering, your edit wins.
  3. Notes are chunked by heading and re-embedded only when a SHA-256 of model name and text changes; hybrid search fuses meaning and the top 5 keyword hits with reciprocal rank fusion (k = 60).
  4. Answers cite numbered passages, and the program prints each source and flags citations that match nothing.
  5. The digest's lists and dates are computed by code; the model writes only a few sentences above them.

Results & numbers

  • Tidying 20 captures: the 27B got 19 right, the 9B 17, the 4B 15, the same in every run.
  • Hybrid search found all 33 answer notes with MRR 1.00 on the sample vault and 0.95 once the week's 44 notes were filed.
  • 2,000 notes made 2,415 chunks, embedded in 14.9 seconds; a search with refresh took 0.44 s and the index was 10.9 MB.
  • The automatic grader scored the 4B 43 of 43, but hand grading gave 36; the 27B was no better than the 9B and took about 4 seconds an answer against 0.7.

Gotchas

  • A pasted newsletter clipping contained text telling the AI to add a to-do to wire money; with the first instructions the 9B and 4B filed it every time. Rewritten instructions stopped it in twelve runs, but the authors treat that as a measurement, not a promise.
  • Relative dates ('this Thursday', 'last week') were wrong for every model in every run; listing days with dates in the prompt didn't fix it.
  • Filed captures crowded out real notes as link candidates until the program skipped Inbox/, Filed/ and Digests/ and looked at the 30 closest chunks.
  • At temperature 0 tidying was repeatable, but answers and digest sentences still varied between runs.
“Treat anything pasted into a note as written by someone else. Never let a model that reads it act on it.”— WeekendAiProjects

Do it yourself

  1. Install Ollama and pull a small Qwen model plus nomic-embed-text.
  2. Serve a simple capture page from your computer and reach it from your phone over Tailscale; save notes into an Inbox folder.
  3. Have the model propose metadata under a JSON schema, then check every field against your vault in code before writing a new note.
  4. Index chunks in SQLite with vectors and FTS5 and combine them with reciprocal rank fusion.
  5. Require numbered citations and a fixed 'can't find that' sentence when the notes don't hold the answer.
  6. Compute dates and to-do lists in code, and read the model's answers yourself at least once.
Source: DEV Community · Published 2026-11-06 · Added 2026-11-08. This write-up summarizes the original source; see it for full details.

Similar setups

A mock-interview coach where a local 4B model must quote you to mark you down

Yuva Kunaal built Local AI Interviewer, an open-source app that runs mock interviews on your own computer with qwen3.5:4b through Ollama and only reports a mistake when the model can quote it from your answer.

DEV Community (Yuva Kunaal) · 2026-11-26

Hearth: a household assistant on Ollama, and proving nothing leaves the house

Hearth answers family questions from manuals and papers with citations, handles voice, notes and reminders, and runs on one home computer; its builders tested small models, prompt injection, and three ways of proving no data leaves.

DEV Community (WeekendAiProjects) · 2026-11-23

mdrag: a Rust CLI to chat with an Obsidian vault

A self-contained RAG tool built on SQLite with sqlite-vec and gemma3:1b. It answers 'how did I fix that Git submodule issue?' from your own notes.

orellazri.com · 2026-10-18

A local Ollama firewall analyst for a MikroTik router

A home-network tinkerer feeds pre-filtered firewall and DNS anomalies to a small model on an 8 GB RTX 3060 Ti, which returns allow, suspicious or block verdicts with evidence while the router keeps doing the real filtering.

Reddit r/ollama (u/emphyr10) · 2026-11-29