How it works: why AI doesn't know your stuff (training cutoff, never saw your files); RAG = Retrieve · Augment · Generate, told through one Sichuan restaurant asked for "something sour, not spicy"; every harness is RAG underneath
Retrieval: why you pick only the most relevant pieces · precision and recall · keyword vs vector search · embedding as a dish taste scorecard, and a question gets scored too · chunk first, then index · answers cite their source
Q&A: cosine distance and the Attention paper · where vector numbers come from (training) · local vs cloud storage · about $10 a month on Cloudflare · do Claude Code sessions get forgotten
Local knowledge base: Claude Code's own memory (sessions · CLAUDE.md · MEMORY.md) plus Garry Tan's open-source GBrain and its three uses (people · events · rules); store and query by voice, a hook saves each session on exit; live demo over 2,427 people
GBrain Q&A: installing · how it's organized · team permissions and updates · it also uses a local vector model · hook vs the Zoom Skill · MIT means you can modify and sell; SRlink and Granola move to 11/17 · Homework: install GBrain, store three, query three, compare the two kinds of search