"Search finds someone else's words that match. Completion hands you back your own words, the way you actually wrote them."
A Different Question Entirely
Completion is not a smaller search. Search asks "which passages are relevant to this?" Completion asks something far more intimate: "I've typed the only question a long-term investor — how does my own corpus finish that phrase?" The answer isn't a ranked list of documents; it's a handful of continuations, mined from your writing, that could plausibly come next. It's less a librarian and more your own voice, echoed back mid-sentence.
How Phrase-Prefix Mining Works
The mechanism is elegant and entirely model-free. Take the tail of what you've typed and use it as a phrase-prefix query against the full-text index — matching where that exact sequence of words begins in the corpus. For each place it anchors, look at what comes immediately after, and gather those continuations. Rank them by how often each recurs, and you have your suggestions. It's not predicting the next word with a neural net; it's reporting how your corpus actually continued that phrase, every time it appeared.
No Embeddings, No Network, No Model
Because it's pure phrase-prefix lookup plus counting, completion touches only the local index. No embedding call, no vector store, no model server, no network hop of any kind. That's what lets it fire on every keystroke and still come back in tens of milliseconds. The determinism from the earlier track isn't just a nice property here — it's the enabling constraint. A completion path with a network call in it would be unusable, so there simply isn't one.
A Resurrected Feature, Made Precise
Corpus phrase-completion is an old idea — writing tools have long offered to finish your sentence from your own past text. What makes Lantern's version sharp is the discipline stacked underneath it: a keystroke-grade budget honored by touching only local state, punctuation-faithful raw slices instead of reconstructions, and a junk guard so malformed source fragments don't surface as garbage suggestions. The feature feels magical when it finishes your thought in your own words — and the magic is entirely deterministic machinery underneath.