Streaming

Category: Generative AI / LLM

A response delivery method where language model output is sent token by token as it is generated, rather than waiting for the complete response before sending.

Full Explanation

Streaming delivers language model output incrementally, sending each generated token to the client as soon as it is produced rather than waiting for the entire response to be generated. This dramatically improves perceived responsiveness because users see the response begin forming almost immediately, even if the total generation takes several seconds. Streaming is implemented using Server-Sent Events (SSE) or WebSocket connections that maintain an open channel between client and server. It has become the standard delivery method for chatbot interfaces and AI assistants, as it mimics the natural flow of human conversation. Streaming also enables users to interrupt or redirect generation early if the response is going in an unwanted direction. From a technical perspective, streaming does not affect the total generation time but transforms the user experience from a waiting paradigm to an interactive reading paradigm.

Related Terms

More in Generative AI / LLM

Explore More