Skip to content
echogeco
Cost, latency and routing · Latency and retries

Can the summariser answer in 3 seconds?

Work out whether a 250-word ticket summary can appear within 3 seconds of a click, and pick streaming, shortening or precomputing from the seconds.

estimateeasyExercise · 3 min · 28 of 77
On this page

Product has promised a summary on screen within three seconds of an agent opening a ticket. The engineer who inherits the promise has to find out whether the decode arithmetic allows it.

The situation

When a support agent opens a ticket, the UI calls the model with the ticket thread — on average 6,000 tokens — and asks for a 250-word summary before the agent reads the thread. The product requirement is that the summary is on screen within 3 seconds of the click, at p95. Tickets are opened 1,500 times a day; a ticket is updated by a customer or an agent about 4,000 times a day in total.

The current implementation makes the call on open, waits for the full response, then renders it. Nobody has measured it, but agents report "it takes ages".

Assume 1.3 tokens per English word, a decode speed of 50 tokens/s, and a measured time to first token of 1.2 s at p95 for a 6k-token prompt. Assume a background job costs the same tokens as a foreground call, and that reading from the ticket database takes milliseconds.

The question

Can the summary be on screen in 3 seconds as built — and if not, which of streaming, shortening the summary or precomputing it meets the requirement, with the seconds shown for each?

A strong answer · Rubric · Where answers go wrong

Write your answer first, then open