All Questions
Ai Coding And Product Systems medium

Your AI code assistant uses one large model for both inline ghost-text completion and the chat panel. Chat users are happy, but completion takes about 1.5 s at p50 and acceptance rates are falling because developers have already typed past the suggestion. What is the best fix?

  1. A Keep the single large model for both surfaces but enable streaming so the first tokens of each completion appear sooner in the editor.
  2. B Increase the context window sent with each completion so the large model produces higher-quality suggestions that justify the wait.
  3. C Route inline completion to a small, fast model with a 200-400 ms budget and keep the large model for the chat surface.
  4. D Move completion into the same request queue as chat and batch requests more aggressively to raise GPU throughput per suggestion.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions