- One is that the entire document is sent to the model, together with your prompt (see this guide). This is the standard in chats and assistants.
- AI models have a context window, which is the limit of how much text can be processed at once. For long documents or a large number of documents, the documents are summarized and only relevant sections are sent to the model in the context window. This is used in knowledge folders.