- Direct files are previewed in the model context. In chats and Agents with up to 20 total documents, all direct files are previewed. With more than 20 documents, an Agent retrieves documents through document search instead, while spreadsheets remain attached.
- 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 semantic search retrieves only the most relevant sections, which are then sent to the model in the context window. This is used in Knowledge bases.
FAQ
How does a file attachment work and how is it different from a Knowledge base?
Understand the difference between direct file attachments and Knowledge bases, including how each processes documents for AI responses.
There are two ways how contents of a file are processed for generating an answer:
When should I use direct files, a Knowledge base, or Folder Sync?When are newly released models available in Langdock?