The method of loci is the oldest memory trick there is. You picture a building you know, put each thing you want to remember in a room, and later you walk through the building to get it back. One place leads you to the next.
I'd already used that structure for agent memory in Palace . So I asked the next question: can a memory palace beat Elasticsearch at search? Not a toy. A million passages, held-out queries, settings frozen before the test, confidence intervals on every number.
The first answer was no. This post is about why I kept going, and what it took to turn that into a yes.
The engine is Loci Search : a self-hosted search engine and Rust library. Documents in SQLite, everything in one process, and every hit comes back with its document, revision and exact source span. MIT, on crates.io, prebuilt binaries for Windows and Linux.
Round one: I lost
The first design was the textbook method of loci. Build a map of semantic regions, the rooms, over a million passages.…