Skip to main content
There are two ways how contents of a file are processed for generating an answer:
  • Direct files are previewed in the model context. Files attached to a chat stay on the direct preview path. For Agent knowledge, the 20 document threshold counts documents attached to the Agent. Files added to a chat message do not count toward that threshold.
  • With more than 20 Agent knowledge documents, text documents remain available through file lists and file tools, while spreadsheets remain available for direct reading. Synced folder text can also use semantic search.
  • 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.
Attaching the files directly to an agent or to a chat leads to the best results. If possible, you should follow this option. We recommend to attach as few documents as possible to an agent or chat. In some use cases, for example when working with large documentation or for an FAQ agent, attaching the documents to an agent or to a chat directly is not possible. Here, you can use Knowledge bases, which work well for use cases where only specific sections are relevant, but not the entire documents.