Skip to content

feat: Custom Tika-compatible proxy guide for Azure AI Foundry Mistral OCR integration #27160

Description

@linbanana

Check Existing Issues

  • I have searched all existing open AND closed issues and discussions and found none comparable to my request.

Verify Feature Scope

  • I believe this feature request is appropriately scoped for the Issues section as described above.

Problem Description

Hi Open WebUI team and community,

I have successfully resolved the RAG content extraction limitations on Windows and complex PDF processing by creating a custom Tika-compatible proxy server that leverages Azure AI Foundry (Mistral OCR).

This setup fully addresses the HTTP PUT binary stream method and the specific JSON Dictionary format expected by Open WebUI's internal loader (avoiding the common AttributeError: 'list' object has no attribute 'get' crash).

I have posted the complete FastAPI proxy implementation script and the configuration guide here:
#19707 (comment)

(Note: Please replace the link above with your actual comment link!)

Hope this guide helps anyone looking to scale their RAG with high-precision enterprise OCR!

Proposed Solution

Proposed Implementation

We can implement a lightweight FastAPI proxy to intercept Open WebUI's file extraction pipeline and bridge it with Azure AI Foundry.

How it works:

  1. Handles PUT method: Reads request.body() directly to capture the raw binary file stream sent by Open WebUI.
  2. Formats as a flat dictionary: Bypasses Tika's default list-of-dicts response format, returning a standard dictionary with {"X-TIKA:content": extracted_text} to seamlessly integrate with Open WebUI's internal Loader.load() extraction method.

This enables high-precision OCR parsing (including markdown tables and checkboxes) for the RAG ingestion pipeline.

Alternatives Considered

No response

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions