BasicsBuilds on other terms

Context window

Written by Minh Khang

What is Context window?

A context window is how much text an AI can see in one go: the prompt, the documents and the conversation so far.

Whatever falls outside the window, the AI cannot see. In a very long conversation the beginning may be cut or get less attention, so important instructions belong in the base prompt rather than said once and forgotten.

Context window in a shop

The chatbot forgot the returns policy you gave it at the start: the instruction may have slid out of the context window.

Keep learning beyond the glossary