learn.web Back to the curriculum ↗

Context / Tools / Evals / Safety / 03

Streaming and uncertain UX

Communicate latency, sources, confidence, interruption, editing, retry, and graceful failure.

Time
75 min
Mode
Learn → Make → Check
Path
AI Product Engineering

By the end, you can…

Waiting is part of the interface

AI responses may take seconds and can fail after partial output. Show that work started, allow cancellation, preserve the user’s input, and distinguish waiting, streaming, tool use, completion, and failure.

Streaming improves perceived speed but can expose unverified claims as they arrive. Reserve consequential actions until validation completes and make final status clear.

Generated content needs agency

Support edit, retry, compare, cite, undo, and dismiss. Do not replace a user’s work without preserving the original. Explain sources and limitations close to the output.

Avoid decorative confidence scores. Communicate what evidence was used, what is missing, and which claims need review.

Your studio task

Make — Prototype streaming, stop, retry, edit, citation, and failure states before connecting a model.

  1. Storyboard idle, submitted, waiting, streaming, validating, success, stopped, and failure states.
  2. Add stop, retry, edit, and source inspection.
  3. Preserve the original input and any user edits.
  4. Test a slow response, partial failure, and unsupported claim.
Definition of done

A user always knows what is happening, what is uncertain, and what control remains theirs.

Open the interactive lesson with its workspace ↗

Knowledge check

What should happen if a streamed answer later fails validation?
  1. Show it as complete anyway
  2. Clearly mark the failure and prevent consequential use
  3. Delete the entire conversation silently
Reveal answer (B)

The interface must distinguish unvalidated partial output from a trustworthy completed result.

A decorative confidence score…
  1. Communicates false precision
  2. Improves grounding
  3. Replaces citations
Reveal answer (A)

Without evidence behind it, a percentage implies precision the system does not have.