﻿# LibreChat OCR and native provider attachments read files through different paths

Trace a LibreChat image or PDF through native delivery, OCR, or text parsing, checking the actual extracted evidence rather than assuming every upload used recognition.

Author: Retrivium editorial team
Updated: 2026-11-03
Canonical URL: https://retrivium.ai/journal/guide-librechat-ocr-native-file-routing/
Language: en

## Identify the representation being read

A scanned policy and an exported policy can look identical in a file list while containing different machine-readable material. Determine whether the task received original pixels, recognized text, or an existing text layer. That representation affects what a question about a stamp, table, or footnote can reasonably expect the model to inspect.

## Distinguish native provider delivery

The [OCR feature guide](https://www.librechat.ai/docs/features/ocr) says an image or PDF accepted by the selected provider can be sent directly and bypass OCR. The existence of an OCR service elsewhere does not establish that this upload used it. Record the actual delivery path before looking for a recognition transcript that may never have been created.

## Check explicit OCR prerequisites

The [OCR reference](https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/ocr) requires service configuration and, for agents, the applicable capability. A key value by itself does not enable the service. Which document types take this path is another setting. Keep service availability, type matching, and the agent's permission as separate diagnostic observations.

For a scanned approval letter, verify a known word and the relevant layout relationship in the resulting representation. Recognizing the text does not necessarily preserve which signature belongs to which paragraph. A visually grounded question may need a different reading path from a text-only summary.

## Understand parser fallback

The OCR reference describes a built-in parser for supported documents with real text layers. It does not read text from image pixels. If an OCR attempt fails and parsing succeeds, keep that processing outcome visible; otherwise a reader may incorrectly assume the scan itself was recognized. An image-only page can remain unreadable through the fallback.

## Validate the complete processing route

The [file reference](https://www.librechat.ai/docs/configuration/librechat_yaml/object_structure/file_config) documents processing priority and delivery configuration. Use it to explain why the same file type follows different routes under different endpoint settings. Check a text-based document and an image-only version separately before declaring the workflow suitable for scanned material.

The existing guides to [PDF table extraction](/journal/pdf-table-extraction-merged-cells/) and [tool observations](/journal/learn-codex-tool-observation/) help inspect the result. Preserve original source identity and actual extracted input so a missing fact can be traced to recognition, representation loss, or later interpretation.
