Skip to content

File Size Limits

When you add a file to a space, either by uploading it or automatically through S3 AutoSync or Confluence Sync, Smartchat splits the file into small chunks and indexes them so they can be found during chats. Very large files produce a huge number of chunks, which is slow to process and memory-intensive. To keep ingestion reliable for everyone, a single file can only be so large.

LimitApplies toMaximum
PagesPDF files500 pages
Document sizeEvery file (including PDFs)roughly 2,000 chunks (very roughly 2 million tokens, or a few thousand pages of plain text)

A chunk is a slice of the document of about 1,000 tokens (a token is roughly ¾ of a word). The exact chunk size depends on your space’s configuration, so the equivalent word or page count varies.

A PDF must satisfy both limits.

If a file exceeds either limit, it is not ingested: the file is rejected and does not become available in the space.

The size limit is a deliberate safety cutoff. The servers that process ingestion have a finite amount of memory, and an arbitrarily large file could consume all of it and destabilise processing for other files and spaces. Because processing has to stay within that memory, a file has to be rejected at some size to keep the system stable, so the exact cutoff is, frankly, somewhat arbitrary. It is set well above what real documents need: the large majority of files (well over 99%) are far smaller than the limit and are never affected.

A large file simply takes longer to ingest, because there is more content to split and index. That slowness comes from the size of the file itself, not from how Smartchat handles it.

To keep these long-running jobs from holding up smaller files, Smartchat processes large files (roughly above 100 pages, or around 400 chunks) on a separate queue. That queue is not slower or less powerful; it has the same resources as the main one. It simply keeps large files out of the way so quick files are not stuck behind them, and it allows a job the longer time it needs to finish. You do not need to do anything; large files just finish later.

Files brought in automatically by S3 AutoSync always use this separate queue, so large synced files never hold up other ingestion. The size limits above are exactly the same for synced files as for uploaded ones.

  • Split it into smaller files. For example, break a large PDF into page ranges, or a long document into per-section files. Each part is ingested separately.
  • Remove content that does not need to be searchable (for example, large image-only appendices) before ingesting.