BaCheWork and records of a photonics research workhorse
Language

Slide version: the whole AI memory system at a glance

Thirteen hand-drawn slides, from “why AI forgets” to the four-layer architecture, follow-the-trail search, and SQLite's real role; the details are in four articles in the same series.

Type
Essay
Published
2026-11-02
Updated
2026-11-02

This is the slide version of the four articles in this series: one point per slide, about five minutes to get through. The details behind each number and method are in the matching articles: Overview, truth layer, routing layer, index and follow-the-trail search.

Cover slide, with the large heading “Let AI find it again” and, below it, a line saying memory is kept with Markdown and folders; on the right, three file cards and the Bache mascot.
A memory system shared between me and my AI assistant, starting from a single Markdown file.
Two large numbers, “90 projects” and “about 1,700 conversations”; below them, three cards note the approach set last week, the pitfalls hit, and where the files live, while someone nearby asks, “Do I need to hook up a database first?”
The most common AI problem is not a lack of intelligence; it is forgetting everything once a new conversation starts.
Four hand-drawn cards, each giving one reason: people and AI read the same copy, version control is free, folders are the categories, and the index can be swapped at any time.
The source of truth lives only in Markdown files and folders, one line for each of the four reasons.
Hand-drawn four-layer architecture diagram, from top to bottom: routing, the truth layer (thickest outline), and derived indexes (dashed line); a column on the right lists write discipline.
Each of the four layers handles one thing, and answers are always read from the files.
A hand-drawn file card listing five lines, what, aliases, tags, date, and status; an arrow from each line leads to a plain-language explanation.
One file covers one thing and opens with a small card; about 600 files carry this card.
Starting from one row in the register, it passes through a progress summary to three cards pointing at the actual files; below are the append-only decision log and a second copy crossed out in red.
Everything has one home; other places hold only pointers.
A hand-drawn horizontal stacked bar, in order: skill descriptions 28 KB, instruction file 21.5 KB, opening summary 9.7 KB, memory index 7.3 KB, and other 1.5 KB; at the right end, about 5 KB of space remains before the 73 KB limit line.
Always-loaded opening content is about 68 KB, leaving only about 5 KB below the roughly 73 KB limit.
A bar chart comparing two numbers: 802 times the rules should have been loaded, against 0 times the built-in mechanism actually loaded them; on the right, an arrow points to “add a small mechanism that sends the rules in.”
Outside the folder where a conversation starts, the rules were never loaded automatically, so a small mechanism was added.
On the left, rules written as text, where the bar showing how often they are followed fills only about 22%; on the right, a flow that checks automatically and attaches candidate locations in under one second, with the Bache mascot beside it.
Rules written as text are followed about 22% of the time; once they become a mechanism, any mention of “last time” triggers an automatic lookup.
A five-step ladder from top to bottom: already in view, register, cross-reference table, federated search, full-text search; each step has an arrow pointing right to “stop once found.”
Take the cheapest route first and go lower only when it breaks; stop once found, and read the answer from the file.
On the left, one query entry connects to sources such as memory, lessons, and the project register, with results listed by source; on the right, an arrow shows exam scores going from 12/29 to 23/30.
The index only nominates; answers are read from the file. Scores are not tuned to the exam paper.
On the left, two cards say SQLite is used for the vector index of conversation summaries and the full-text index of research material; on the right, a card says two derived views have gone stale, and below it, for starting from scratch, the suggestion is to use the full-text index first.
SQLite holds no truth here; it is used only for indexes that can be rebuilt.
Closing slide with three cards, “One thing, one home,” “Routing matters more than search,” and “The index can always be rebuilt”; below them are the titles of the four articles in the series; on the right is the Bache mascot.
What you can copy is the approach, not the numbers.

← Previous:Indexes and trail search: indexes only nominate, answers come from files