- 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 agents.
- 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 split into chunks and a semantic search retrieves only the most relevant sections, which are then sent to the model in the context window. This is used in folders.
FAQ
How does a file attachment work and how is it different to a file in a folder?
Understand the difference between direct file attachments and folders, including how each processes documents for AI responses.
There are two ways how contents of a file are processed for generating an answer:
When do I attach a file to a chat, when to an agent and when do I use a folder?When are newly released models available in Langdock?