Tech Deep Dive

From Phone Autocomplete to LLMs: The Same Next-Word Job, Far More Context

AI

How phone autocomplete and search suggestions grew into large language models: the shared next-word job, the wider context that changes it, the open argument over what it amounts to, and what it means for engineering work.

What was said, and where it came from

  1. In Elastic's traditional method, you define a completion field and the suggestion terms are curated by hand.

  2. In Elastic's example, the typed prefix 'MacB' matches the stored term 'MacBook Air M2'.

  3. Elastic says the traditional approach often lacks contextual relevance.

  4. Elastic says the traditional approach needs constant updates when products change.

  5. Elastic's alternative uses an OpenAI completion model, gpt-4o-mini in its example, to generate suggestion terms from product names and descriptions.

  6. In Elastic's approach, the generated terms are produced in an ingest pipeline when documents are indexed.

  7. Elastic says the model is invoked only during ingestion, so its use scales with the number of documents rather than with searches.

  8. Elastic says the generated terms are not always the same even when the same prompt is used.

  9. Business Insider said in 2013 that Google's suggestions reflect the search activity of all its users and the content of pages Google has indexed.

  10. Business Insider said suggestions can also be based on a user's previous searches.

  11. In the LinkedIn Learning course, a large language model given the phrase the capital of France is calculates that Paris is the most likely next word.

  12. The LinkedIn Learning course says the model does not know geography; it knows that Paris usually follows that phrase.

  13. The Wix engineering article says LLMs are not trained to answer questions but to predict the next word in a sequence.

  14. The Wix engineering article says LLMs are later fine-tuned to steer those predictions toward useful answers.

  15. The Wix engineering article says the training is self-supervised, because the true next word is already in the text and no human labels are needed.

  16. The Wix engineering article says a single nine-word sentence yields eight different training examples.

  17. The Wix engineering article says attention lets the model weigh each word against all the others, however far back they appear.

  18. In the Wix engineering article's example, the word 'It' in a sentence about a chef and soup refers to the soup, because of the words cooled down.

  19. The Wix engineering article says an LLM generates one word at a time, appending each to its own growing context before predicting the next, a process it calls auto-regression.

  20. The Wix engineering article says each word is stored as an array of numbers, and real models use roughly three thousand numbers per word.

  21. The Wix engineering article says attention appeared in a 2014 paper, and the 2017 paper Attention Is All You Need made it the centerpiece by replacing recurrence and convolutions.

  22. The Wix engineering article says the 2017 Transformer architecture remains the backbone of modern LLMs.

  23. A simple autocomplete might suggest mat or chair after the cat sat on the, based on common phrases, while an LLM considers the whole context.

  24. The BoxCars AI post quotes Gary Marcus from 2021 saying 'All it really does is predict the next word'.

  25. The BoxCars AI post reads Marcus's remark as a sign of the objective's power, if the model can be guided to autocomplete the right problems.

  26. One Hacker News commenter called an LLM a glorified autocomplete and said that being trained on autocomplete does not say much about what capabilities might emerge.

  27. Another Hacker News commenter said an LLM is just a stochastic parrot, with no magic in it.

  28. A reply in the Hacker News thread pointed to multi-step reasoning with backtracking after DeepSeek R1 was trained via GRPO as an example of emergence.

  29. The same reply pointed to translation of languages the model had never seen, through in-context learning, as an example of emergence.

  30. The same reply said arithmetic ability is heavily correlated with model size.

  31. A different Hacker News commenter said there has been, to date, no demonstrated emergence from LLMs.

  32. Continue's documentation says autocomplete models are trained on a fill-in-the-middle format, given the code before and after the cursor and asked to predict what goes between.

  33. Continue's documentation says even a 3B parameter model can perform well as an autocomplete model.

  34. Continue's documentation says chat models, though larger, often perform poorly on this task even with extensive prompting.

  35. Patrick Grämer's LinkedIn post says the amount of hands-on code he writes has plummeted over the last six months.

  36. Patrick Grämer's LinkedIn post says the leap in LLM performance shifted his job from autocomplete-typing to high-level systems orchestration.

  37. Patrick Grämer's LinkedIn post says a single feature can secretly burn through thousands of dollars in background inference and review debt before anyone notices.