Local Second Brain
Private, local-first memory system that turns an Obsidian vault of Markdown notes into a searchable knowledge base, running entirely on a Mac with local AI models.
The challenge
The most useful knowledge a person or a company has sits in notes. To make an AI assistant use it, the usual route is uploading those notes to someone else's cloud, which is not acceptable for private or confidential material. Keyword search inside the notes app does not solve it either, because it only finds exact words, not meaning.
What we built
The system reads an Obsidian vault, which is a folder of plain Markdown files, and turns it into a searchable memory that never leaves the machine.
An ingestion job mounts the vault read-only, so it can never alter a note. It checks the YAML header of every note against a strict schema (note type, sensitivity level, and whether the content is a fact, a statement or an inference), splits each note by heading, and embeds only the chunks that have changed since the last run. Embeddings are generated by a model running locally through Ollama and stored in PostgreSQL with pgvector on the same Mac.
Search is semantic and available only on the local machine. Every result cites the note path and heading it came from. Private and sensitive notes are excluded unless they are requested explicitly, and a note removed from the vault is queued for review rather than deleted. Database credentials live in the macOS Keychain, no database port is exposed, every write is recorded in an append-only audit log, and one command locks all model-facing operations.
The result
A working private knowledge base on one Mac: notes go in as Markdown, answers come out with citations, and nothing is sent to a cloud service.
What it shows for a client project: the same pipeline (documents in, validated, embedded, searched with sources) is what a company knowledge base needs. For teams that cannot send data to a cloud AI provider, it can run on their own hardware.
Technology
Obsidian, Markdown, Python, FastAPI, PostgreSQL, pgvector, Ollama, Docker, macOS Keychain