Latency

Latency is how long an AI system takes to return an answer from the moment it receives the question. It includes the information retrieval, the lookups against other systems and the text generation, and it is perceived whole even though the model is only one part of it.

What is latency?

Latency is how long an AI system takes to return an answer from the moment it receives the question. It includes the information retrieval, the lookups against other systems and the text generation, and it is perceived whole even though the model is only one part of it.

Also: model response time

Why it matters

What changes in a SaaS

Because in support it competes with the expectation of a chat, which is measured in seconds. An agent taking fifteen seconds to reply loses the person asking even when it is right, and in practice it feels worse than a human taking two minutes who says they are looking into it.

Primer plano de una placa de circuito

Latency in detail

  • Where the time goes

    Rarely in one place: retrieving passages, checking the account, generating the answer and, if the model calls a tool, another full round. Measuring the stretches separately comes first, because optimising the wrong one changes nothing.

  • Showing the text as it is generated

    Writing the answer out as it comes cuts perceived waiting a lot without touching the real figure. It is one of the best effort-to-effect changes available.

  • The trade-off with quality

    More context and more steps usually give better answers and always give more latency. Where the middle ground sits depends on the channel: in chat speed weighs heavily, in email it does not.

Questions about latency

How much latency is acceptable in a support chat?

Under three or four seconds to the first words, the conversation feels fluid. Above ten, people leave or write again, and both make the outcome worse.

Does a smaller model answer faster?

It usually does, and for classifying or routing it is a good option. For writing the answer to the customer, the quality difference nearly always justifies the extra second.

Related terms

A term on its own is only half understood. These come up in the same conversation.

Try it without dropping what you use