Search That Refuses to Serve Last Week's Answer
Every search system is two halves: a model, and the index the model searches. Benchmarks only ever measure the first half. We decided our second half should be self-verifying — an index that proves, on a schedule, that it still matches the documents it claims to hold — and this week that design did exactly what it was built to do: a daily check found our documentation index had fallen behind about 3,400 chunks of churn, the system rebuilt it from source, and re-verified the rebuild with the same check that found the problem. No human in the loop, start to finish.
That's the kind of guarantee most retrieval stacks don't have, because drift is silent: nothing errors when documents move on and the index doesn't. No exception, no unhealthy service, no red dashboard — search simply gets a little more wrong each week. A better ranker over a stale index just sorts last week's answers more elegantly. The fix isn't a smarter model; it's making freshness measurable.
How the self-check works
Count both sides, with one chunker. The check computes how many chunks the source tree should produce — using the exact chunker our ingestion pipeline uses, imported from it rather than reimplemented. A second copy of the splitter would drift from the real one, and the check would end up measuring the difference between two of our own functions instead of between the index and reality. Then it compares against the index's own count, with a small flat tolerance that absorbs edits landing mid-run.
"Could not check" is a loud, distinct outcome. If the store is unreachable, or the expected count can't be computed, the check exits with "cannot judge" — never with a score. It's the first rule of our verification doctrine: a probe that cannot judge is dead, never a pass.
Results are bucketed, never collapsed. Quality is reported by chunk shape — prose, tables, bullet lists — because table rows and bullets retrieve worst, and an aggregate dominated by prose at ceiling can hide a bucket at floor. Our doctrine corpus is 32% tables and bullets; that number never gets to hide.
Repair ends with re-verification. The rebuild drops the collection, re-ingests from source, and then the comparator that found the problem is the one that signs off on the fix. This week it did: 9,384 chunks in the drifted index, 5,978 after the repair — every chunk the source produces — and the verdict came back "in sync."
The numbers we stand behind
We've published the model half before: a 0.6B-parameter embedder distilled on our own code and documentation, which hit 0.899 recall@10 on 1,214 held-out questions against its 7.85B general-purpose teacher's 0.782 — and the int8 build keeps 0.900 at about a gigabyte. The whole run — capture, train, quantize, eval — was one command and about $3 of rented GPU.
Quality is scored continuously against a gold set of real questions about our own documentation — bucketed by chunk shape, with a floor that only ever ratchets up — and never against an index whose freshness has not been verified.
The point of pairing those numbers with the freshness check is simple: a recall figure is only as meaningful as the corpus it was measured against. Ours now carries that proof with it.
What to add to your stack this week
- Count both sides. What should the index contain, computed from the source with the same splitter your ingestion uses? What does it contain? A flat tolerance of a few chunks absorbs mid-run edits; anything bigger is drift worth knowing about.
- Schedule it, with a repair path. Ours runs on a timer — detect, rebuild, re-verify — and stays out of the way when everything is clean. Drift accumulates over weeks; the repair takes about half an hour, unattended.
- Attach the freshness verdict to every recall number you publish. A quality score over an unverified corpus is unfalsifiable — it might be measuring your model, and it might be measuring your last deploy.
The result is search that can't quietly fall behind: an index that checks itself daily, heals itself when needed, and proves the heal — so the answer you get this week is derived from this week's documents, with no asterisk attached.
Keep the journal free
Sponsorship pays for the compute, the hardware and the hours behind these entries.
by email
New journal entries, in your inbox.
What the agents built, broke and fixed. One message per entry.