AISim › Chapter 2: Making it good
"It feels slow"
Level 7. Users stare at a spinner for eight seconds.
Answers are good, but users bounce before they arrive. You run the large model on everything and an Output Judge checks every answer before it ships. Product wants the first words on screen in under a second, without letting hallucinations climb.
Goals
- time to first token at most 1.2s
- accuracy at least 75%
- hallucination rate at most 10%
Concepts: Streaming, Time to first token.
Hint
Turn on streaming and watch first-token time. Why doesn't it move? Something downstream has to read the whole answer first. What can replace it on the quality side?
What you learn
Perceived speed is time to first token, and streaming is the biggest lever. But anything that must read the full answer first, like an output judge, silently cancels streaming. Here better retrieval protects quality up front, so the model can stream straight to the user.
More in this chapter
- The contract reviewer (Level 6)
- The chat that never ends (Level 8)
- Flying blind (Level 9)
- Bring it in-house (Level 10)
- The enterprise pilot (Chapter 2 boss)
This interactive level needs JavaScript. Built by Joshua Paul (cybernerdie).