﻿# LibreChat file limits: per-file truncation differs from an aggregate turn rejection

Distinguish LibreChat per-file text truncation from aggregate attachment safety limits, and diagnose the effective prompt rather than only stored upload size.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-librechat-file-token-aggregate-limits/
Language: en

## Locate the stage of the limit

A review agent accepts several policy documents but later fails when answering a question. The upload succeeded, so the user may assume a model outage. File admission and prompt construction have separate limits. Record whether the failure happened while storing the file or while assembling the material for a particular Agent turn.

## Check per-file text truncation

The [file reference](https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/file_config) defines `fileTokenLimit` as a limit applied to each file's extracted text at prompt construction. This can shorten the text after upload. Preserve the effective configuration and inspect whether a needed clause lies beyond the included portion before blaming the model for ignoring it.

## Inspect aggregate safety bounds

The same reference defines `fileContextSizeLimit` and `fileContextCharLimit` for aggregate model-bound attachments. Exceeding those bounds can stop the turn before invoking the model. Do not describe this as an answer generated without sufficient attention: in that case, the answering step did not run. The remedy concerns the admitted material or applicable limits rather than response style.

For a policy comparison, a compact glossary may fit alone while several retained attachments exceed the combined allowance. Count the material actually entering that turn, including recurring context. Looking only at the newest attachment's size can miss the cause of the rejection.

## Separate text input from tool storage

[Upload Files as Text](https://www.librechat.ai/docs/features/upload_as_text) describes extracted document content added to model input. The [Agents guide](https://www.librechat.ai/docs/features/agents) distinguishes recurring File Context from tool resources. The file reference excludes resources that do not enter model context from its aggregate prompt bounds. A file inventory and a prompt-input inventory are therefore different diagnostic artifacts.

## Preserve necessary coverage when reducing input

Choose which sources and sections the task requires before shrinking the input. Removing every exception section may make the prompt fit while invalidating the intended comparison. If selective retrieval is appropriate, evaluate that separate reading path rather than claiming it preserves the same whole-document coverage automatically.

The existing guides to [task budgets](/journal/learn-codex-task-budgets/) and [structural chunking](/journal/rag-chunking-structure-token-boundaries/) help make that choice. Test a single truncated file and an aggregate rejection independently, preserving the failure stage and available evidence so the user receives an actionable diagnosis.
