← Questions

Design a grounded voice assistant

0
AppleSystem designLast asked Jan 2026

An AI system design interview question asked in Apple's AI system design round, last asked Jan 2026. It tests voice, llm and rag.

Design a voice assistant whose answers are grounded in trusted sources instead of made up by the model. The user speaks a question; the assistant answers out loud, quickly, and correctly, using the conversation so far.

Requirements

  • Functional: speech to text, understanding the request in the context of the conversation, retrieving information from trusted sources (knowledge bases, the user's own data, live services), generating a short spoken answer grounded in that information, and saying "I don't know" or asking a question when it can't answer.
  • Non-functional: low latency from the end of speech to the first audio; safe answers; privacy for personal data; quality that can be measured.

Clarifying questions

  • Which domains: general knowledge, device actions, personal data?
  • What latency target, and what can run on the device versus the server?
  • How long can a conversation be, and how much history must it remember?

What a strong answer covers

  • The pipeline: speech recognition, query rewriting with conversation context, retrieval, a model that answers only from retrieved evidence, a check step, then text to speech, and where streaming hides latency.
  • Why models hallucinate (missing or stale context, pressure to answer) and the defenses: retrieval quality, instructions to answer only from sources, citation or attribution checks, refusing when evidence is weak.
  • Managing long histories: summarizing earlier turns, keeping entities and references, limits on context size.
  • Evaluation: answer correctness and groundedness on a labeled set, hallucination rate, task success, latency percentiles, user signals (rephrasing, interruptions), safety checks.
  • The trade-offs between accuracy, latency, safety and a natural voice experience, decided for this product.

Follow-ups

  • Speech recognition mishears a name. How does the system recover?
  • A source changes after the answer was cached. How do you keep answers fresh?
  • How would you reduce latency by half without hurting groundedness?

Where it's asked

  • Apple · AI system design · Last asked Jan 2026

What it tests

voice · llm · rag · grounding

Your canvas
Draw your answer hereBoxes, arrows and notes, saved for you to come back to.Sign in to start drawing