Scenario
You’re building an AI feature that observes a user’s typing stream in an editor/search box and predicts the user’s intent in real time.
This is not classic autocomplete of the next few characters; instead, you need to infer higher-level intent such as:
-
“writing an email reply” vs “searching inbox” vs “creating a meeting agenda”
-
“asking for code snippet” vs “asking for explanation”
-
“trying to insert a table” vs “formatting a heading”
Task
Design an ML system that infers intent from typing + context.
Requirements
-
Streaming / low latency (updates as the user types).
-
High privacy requirements (typed text can be sensitive).
-
Must degrade gracefully when uncertain.
-
Should support personalization.
What to cover
-
Input signals and features (text + UI context).
-
Model architecture and serving (on-device vs server).
-
Labeling strategy.
-
Metrics and evaluation.
-
Failure modes and safety.