[GH-ISSUE #22263] issue: Uploading yaml produces an error with Docling as engine #58347

Closed
opened 2026-05-05 22:59:04 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @lukaaas176 on GitHub (Mar 5, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/22263

Check Existing Issues

  • I have searched for any existing and/or related issues.
  • I have searched for any existing and/or related discussions.
  • I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!).
  • I am using the latest version of Open WebUI.

Installation Method

Pip Install

Open WebUI Version

v0.8.8

Ollama Version (if applicable)

v0.17.4

Operating System

Ubuntu 24.04

Browser (if applicable)

Firefox

Confirmation

  • I have read and followed all instructions in README.md.
  • I am using the latest version of both Open WebUI and Ollama.
  • I have included the browser console logs.
  • I have included the Docker container logs.
  • I have provided every relevant configuration, setting, and environment variable used in my setup.
  • I have clearly listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc).
  • I have documented step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation. My steps:
  • Start with the initial platform/version/OS and dependencies used,
  • Specify exact install/launch/configure commands,
  • List URLs visited, user input (incl. example values/emails/passwords if needed),
  • Describe all options and toggles enabled or changed,
  • Include any files or environmental changes,
  • Identify the expected and actual result at each stage,
  • Ensure any reasonably skilled user can follow and hit the same issue.

Expected Behavior

Uploading a yaml should treat is as a text-file and load it with a TextLoader

Actual Behavior

It forwards it to docling, which will fail.

Steps to Reproduce

  1. Setup openwebui as you want
  2. Use docling document engine and have docling serve running somewhere
  3. Upload a yaml file

Logs & Screenshots

image
Mar 05 13:50:01 hostname uvx[473121]: ERROR:docling.datamodel.document:Input document open-webui-data/uploads/00657899-4740-4928-85dd-17ecfefd15d0_2JQS.yaml with format None does not match any allowed format: (dict_keys([<InputFormat.DOCX: 'docx'>, <InputFormat.PPTX: 'pptx'>, <InputFormat.HTML: 'html'>, <InputFormat.IMAGE: 'image'>, <InputFormat.PDF: 'pdf'>, <InputFormat.ASCIIDOC: 'asciidoc'>, <InputFormat.MD: 'md'>, <InputFormat.CSV: 'csv'>, <InputFormat.XLSX: 'xlsx'>, <InputFormat.XML_USPTO: 'xml_uspto'>, <InputFormat.XML_JATS: 'xml_jats'>, <InputFormat.XML_XBRL: 'xml_xbrl'>, <InputFormat.METS_GBS: 'mets_gbs'>, <InputFormat.JSON_DOCLING: 'json_docling'>, <InputFormat.AUDIO: 'audio'>, <InputFormat.VTT: 'vtt'>, <InputFormat.LATEX: 'latex'>]))
Mar 05 13:50:03 hostname uvx[473121]: INFO:     other-host:0 - "POST /v1/convert/file HTTP/1.0" 200 OK

Additional Information

Hey :)

After deploying a test instance at my university, testers found out that uploading any yaml file throws the error in the screenshot

After reporting it to me, i was able to easly reproduce it: Open-WebUI does not have yaml/yml as known_source_ext in backend/open_webui/retrieval/loaders/main.py, so it forwards it to docling-serve, which will reject the request.

I would have two suggestions and would be willing to implement and provide a pull request for that :)

  • Change the error to something more meaningful, at least for docling
  • In every case use a TextLoader for such files, regardless of the engine

Any thoughts? :)

Originally created by @lukaaas176 on GitHub (Mar 5, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/22263 ### Check Existing Issues - [x] I have searched for any existing and/or related issues. - [x] I have searched for any existing and/or related discussions. - [x] I have also searched in the CLOSED issues AND CLOSED discussions and found no related items (your issue might already be addressed on the development branch!). - [x] I am using the latest version of Open WebUI. ### Installation Method Pip Install ### Open WebUI Version v0.8.8 ### Ollama Version (if applicable) v0.17.4 ### Operating System Ubuntu 24.04 ### Browser (if applicable) Firefox ### Confirmation - [x] I have read and followed all instructions in `README.md`. - [x] I am using the latest version of **both** Open WebUI and Ollama. - [x] I have included the browser console logs. - [x] I have included the Docker container logs. - [x] I have **provided every relevant configuration, setting, and environment variable used in my setup.** - [x] I have clearly **listed every relevant configuration, custom setting, environment variable, and command-line option that influences my setup** (such as Docker Compose overrides, .env values, browser settings, authentication configurations, etc). - [x] I have documented **step-by-step reproduction instructions that are precise, sequential, and leave nothing to interpretation**. My steps: - Start with the initial platform/version/OS and dependencies used, - Specify exact install/launch/configure commands, - List URLs visited, user input (incl. example values/emails/passwords if needed), - Describe all options and toggles enabled or changed, - Include any files or environmental changes, - Identify the expected and actual result at each stage, - Ensure any reasonably skilled user can follow and hit the same issue. ### Expected Behavior Uploading a yaml should treat is as a text-file and load it with a TextLoader ### Actual Behavior It forwards it to docling, which will fail. ### Steps to Reproduce 1. Setup openwebui as you want 2. Use docling document engine and have docling serve running somewhere 3. Upload a yaml file ### Logs & Screenshots <img width="365" height="137" alt="image" src="https://github.com/user-attachments/assets/f9caf14d-5798-4d56-9870-8a92df999328" /> ``` Mar 05 13:50:01 hostname uvx[473121]: ERROR:docling.datamodel.document:Input document open-webui-data/uploads/00657899-4740-4928-85dd-17ecfefd15d0_2JQS.yaml with format None does not match any allowed format: (dict_keys([<InputFormat.DOCX: 'docx'>, <InputFormat.PPTX: 'pptx'>, <InputFormat.HTML: 'html'>, <InputFormat.IMAGE: 'image'>, <InputFormat.PDF: 'pdf'>, <InputFormat.ASCIIDOC: 'asciidoc'>, <InputFormat.MD: 'md'>, <InputFormat.CSV: 'csv'>, <InputFormat.XLSX: 'xlsx'>, <InputFormat.XML_USPTO: 'xml_uspto'>, <InputFormat.XML_JATS: 'xml_jats'>, <InputFormat.XML_XBRL: 'xml_xbrl'>, <InputFormat.METS_GBS: 'mets_gbs'>, <InputFormat.JSON_DOCLING: 'json_docling'>, <InputFormat.AUDIO: 'audio'>, <InputFormat.VTT: 'vtt'>, <InputFormat.LATEX: 'latex'>])) Mar 05 13:50:03 hostname uvx[473121]: INFO: other-host:0 - "POST /v1/convert/file HTTP/1.0" 200 OK ``` ### Additional Information Hey :) After deploying a test instance at my university, testers found out that uploading any yaml file throws the error in the screenshot After reporting it to me, i was able to easly reproduce it: Open-WebUI does not have yaml/yml as known_source_ext in `backend/open_webui/retrieval/loaders/main.py`, so it forwards it to docling-serve, which will reject the request. I would have two suggestions and would be willing to implement and provide a pull request for that :) - Change the error to something more meaningful, at least for docling - In every case use a TextLoader for such files, regardless of the engine Any thoughts? :)
GiteaMirror added the bug label 2026-05-05 22:59:04 -05:00
Author
Owner

@Classic298 commented on GitHub (Mar 8, 2026):

710320601a

<!-- gh-comment-id:4020091142 --> @Classic298 commented on GitHub (Mar 8, 2026): https://github.com/open-webui/open-webui/commit/710320601a3b15dc65acc3944c81455257be46ac
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#58347