Lesson 3 of 5

Lesson 3: point it at your drive and your files

Same watcher shape, aimed at your documents, so finding that contract means you just ask.

Same watcher shape, aimed at your documents. When it works, 'find that contract' stops meaning 'go dig through folders for twenty minutes' and starts meaning you just ask.

  1. Build a files watcher the same way (Lararium ships the pattern, not the watcher code), with a per-source watermark. Freeze the query per run and cap the page count so a large drive cannot hang a single pass.
  2. Never full-re-walk on every run. Full re-walks are slow and expensive, and they exhaust things you did not expect (id sequences, rate caps). Cursor the walk and resume where you left off.
  3. Keep the discipline from lesson 2: a no-op pass writes nothing. If there is no new signal, the watcher does not bump its watermark or churn embeddings.

Wiring document sources cleanly is fiddly work you do once and maintain forever. That maintenance is exactly what Elorati takes off your plate.

← PreviousLesson 2: feed it your email Next →Lesson 4: give it your calendar and your messages
Bring your own gods.
The series The lessons Documentation ↗ GitHub ↗ npm ↗
An Elorati project MIT · MMXXVI