Skip to content

Context window

A context window is the maximum amount of text, measured in tokens, that a language model can take into account at once. It covers the instructions, the conversation so far, any retrieved documents and the reply being written. Anything outside the window is invisible to the model when it generates its answer.

Example

A model with a 200,000-token window can read roughly a long novel's worth of text in one request; a long chat plus several documents can still fill it.

Why it matters for a website chatbot

A website's full content rarely fits in one request, and sending everything would be slow and costly. That's why chatbots retrieve only relevant passages. ChatBento sends the model the passages that best match each question plus the most recent turns of the conversation, not your whole site.

See it in practice: Docs and help-center search

Further reading

An AI chatbot that answers from your site. Free to start. Paid plans from $8 a month.

14-day free trial. No card required.