Skip to main content
Large Language Models have a context window, which is the maximum amount of text they can process at once. This includes the prompt you send to the model, the previous chat history, as well as attached files (this is explained in this guide). To work efficiently with files, reduce the number of documents to the lowest number of files possible.

Chat: 20 files

In a single chat, you can attach up to 20 files. This limit helps ensure the attached content fits into the model’s context window alongside your prompt and chat history.

Agents: 50 files

You can attach up to 50 files to an agent’s Knowledge section. The first 20 files are previewed directly in the model’s context (the first pages of each document are always available), while files 21–50 remain attached and are retrieved on demand through document search. This keeps first-turn responses fast without hiding the rest of your knowledge from the agent. To work with larger document collections, use a Knowledge base and attach it to an agent as an action. Knowledge bases support up to 1,000 files and are fully searchable.