Latency
Ask Lumen takes nine seconds to answer, and a silent screen starts to feel broken after a second or two. Nothing is broken; it's just a search, two model calls and a long answer done one after another. Most of those nine seconds can be removed, and much of what's left can be hidden, once you know where the time goes.
In this lesson you'll learn to
- Break a response's time into its parts (retrieval, tools, time to first token, output generation) and measure each one.
- Remove waiting by running independent steps in parallel and by cutting steps from the critical path.
- Make each model call faster with shorter outputs, smaller models for simple steps, and a cache-friendly prompt.
- Hide the waits that remain with streaming, visible progress and UI that never freezes.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.