Design autocomplete with next-word prediction

HardML design45 minSWEMLEPro outline

The question

Design an autocomplete feature for a text box that suggests the next word or a short phrase as the user types. It must feel instant.

Cover the model, the serving path and how you measure whether suggestions help.

What the interviewer is looking for

  • Sets a latency budget per keystroke and designs to it
  • Considers a trie or n-gram baseline before a neural model
  • Discusses a small on-device or edge model versus a server model
  • Handles caching, debouncing and personalisation
  • Defines offline and online metrics

Your answer

Saved in this browser only. Nobody else sees it.

Why this question

Written by BlogLLM in the style of a publicly reported xAI question type: Autocomplete with next-word prediction.

Reported in: designgurus.io

Practice question written by BlogLLM based on publicly reported interview formats. Not an official xAI question.