Design a Visual Conversation and Speech Assistant
Give a language model image-grounded conversational ability and turn the same answer into ordered speech, with model-quality checks and clear interruption behavior.
Problem statement
For this exercise, assume an authenticated user supplies a static image and a text question, asks follow-up questions about that image, and receives an image-grounded text answer with matching spoken output.
Approved pretrained vision, language and text-to-speech components are available; explain the compatible visual-to-language interface and how you would select or adapt a model for this task. A compatible pretrained multimodal checkpoint is a valid starting point.
The assistant must use the right image and conversation revision, acknowledge uncertainty when the image does not support an answer, and produce speech only from stable committed answer text under a versioned pronunciation/normalization policy. Users can cancel a response and start a new turn.
Cancellation must stop new work and discard queued unplayed audio for the canceled turn; audio already heard cannot be undone. A speech failure may leave a visible text-only answer with an explicit status.
Design the model path, bounded multi-turn context, answer and speech pipeline, quality evaluation and failure behavior. Voice input, live video, external business actions, training foundation models from scratch and a large annotation platform are outside scope.
What to build
- Answer an authorized image question and its text follow-ups using a compatible vision-language path and the intended image and conversation revision.
- Convert stable answer text into ordered speech whose segments retain their source-text and model-version identities.
- Cancel active output and report generation or speech failures without delivering late output from a canceled or superseded turn.
- Evaluate image dependence, conversational grounding, uncertainty behavior and spoken fidelity before activating a compatible model pipeline.
At scale
- For this exercise, support peaks of 200 new turns per second across 10,000 active conversations; each turn supplies at most one static image of 5 MiB and a response of at most 300 text tokens.
- For this exercise, target a three-second p95 time to first playable speech for admitted healthy turns, measured from acceptance of an already uploaded image and question; a failed speech dependency may produce explicit text-only completion.
- For this exercise, the selected language model has an 8,000-token input context budget, including image tokens, instructions and selected conversation text; state how overflow is handled.
- For this exercise, an independent fixed evaluation set covers image-dependent questions, multi-turn image references, unanswerable questions and speech fidelity; release requires meeting predeclared quality thresholds and reporting slice results.