[GH-ISSUE #20544] issue: Document uploading - Docling API #57883

Closed
opened 2026-05-05 21:49:39 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @n4gY1 on GitHub (Jan 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20544

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

Git Clone

Open WebUI Version

v0.7.1

Ollama Version (if applicable)

No response

Operating System

debian

Browser (if applicable)

No response

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

Upload pdf document, invalid text splitter error, document not save to the database.
Document settings: Docling - http://docker-docling:5001 , but not relevant.
Error message:

2026-01-10T09:35:36.392893195Z process_file(
2026-01-10T09:35:36.392894247Z └ <function process_file at 0x7fadd991c720>
2026-01-10T09:35:36.392894868Z
2026-01-10T09:35:36.392895359Z > File "/app/backend/open_webui/routers/retrieval.py", line 1789, in process_file
2026-01-10T09:35:36.392896681Z raise e
2026-01-10T09:35:36.392897212Z └ ValueError('[ERROR: Invalid text splitter]')
2026-01-10T09:35:36.392897813Z
2026-01-10T09:35:36.392898805Z File "/app/backend/open_webui/routers/retrieval.py", line 1750, in process_file
2026-01-10T09:35:36.392899517Z result = save_docs_to_vector_db(
2026-01-10T09:35:36.392900068Z └ <function save_docs_to_vector_db at 0x7fadd991c5e0>
2026-01-10T09:35:36.392901240Z
2026-01-10T09:35:36.392901801Z File "/app/backend/open_webui/routers/retrieval.py", line 1478, in save_docs_to_vector_db
2026-01-10T09:35:36.392902452Z raise ValueError(ERROR_MESSAGES.DEFAULT("Invalid text splitter"))
2026-01-10T09:35:36.392903885Z │ └ <function ERROR_MESSAGES. at 0x7faf539c07c0>
2026-01-10T09:35:36.392904596Z └ <enum 'ERROR_MESSAGES'>
2026-01-10T09:35:36.392905428Z
2026-01-10T09:35:36.392906310Z ValueError: [ERROR: Invalid text splitter]
2026-01-10T09:35:36.398231817Z 2026-01-10 09:35:36.398 | ERROR | open_webui.routers.files:_process_handler:175 - Error processing file: 661073ec-6b4a-4172-8f29-57decd2d7c0c
2026-01-10T09:35:38.454187775Z 2026-01-10 09:35:38.454 | INFO | open_webui.routers.ollama:get_all_models:331 - get_all_models()

Actual Behavior

Error when upload document.

2026-01-10T09:35:36.392893195Z process_file(
2026-01-10T09:35:36.392894247Z └ <function process_file at 0x7fadd991c720>
2026-01-10T09:35:36.392894868Z
2026-01-10T09:35:36.392895359Z > File "/app/backend/open_webui/routers/retrieval.py", line 1789, in process_file
2026-01-10T09:35:36.392896681Z raise e
2026-01-10T09:35:36.392897212Z └ ValueError('[ERROR: Invalid text splitter]')
2026-01-10T09:35:36.392897813Z
2026-01-10T09:35:36.392898805Z File "/app/backend/open_webui/routers/retrieval.py", line 1750, in process_file
2026-01-10T09:35:36.392899517Z result = save_docs_to_vector_db(
2026-01-10T09:35:36.392900068Z └ <function save_docs_to_vector_db at 0x7fadd991c5e0>
2026-01-10T09:35:36.392901240Z
2026-01-10T09:35:36.392901801Z File "/app/backend/open_webui/routers/retrieval.py", line 1478, in save_docs_to_vector_db
2026-01-10T09:35:36.392902452Z raise ValueError(ERROR_MESSAGES.DEFAULT("Invalid text splitter"))
2026-01-10T09:35:36.392903885Z │ └ <function ERROR_MESSAGES. at 0x7faf539c07c0>
2026-01-10T09:35:36.392904596Z └ <enum 'ERROR_MESSAGES'>
2026-01-10T09:35:36.392905428Z
2026-01-10T09:35:36.392906310Z ValueError: [ERROR: Invalid text splitter]
2026-01-10T09:35:36.398231817Z 2026-01-10 09:35:36.398 | ERROR | open_webui.routers.files:_process_handler:175 - Error processing file: 661073ec-6b4a-4172-8f29-57decd2d7c0c
2026-01-10T09:35:38.454187775Z 2026-01-10 09:35:38.454 | INFO | open_webui.routers.ollama:get_all_models:331 - get_all_models()

Steps to Reproduce

Chat or knowledge upload document.

Logs & Screenshots

2026-01-10T09:35:36.392893195Z process_file(
2026-01-10T09:35:36.392894247Z └ <function process_file at 0x7fadd991c720>
2026-01-10T09:35:36.392894868Z
2026-01-10T09:35:36.392895359Z > File "/app/backend/open_webui/routers/retrieval.py", line 1789, in process_file
2026-01-10T09:35:36.392896681Z raise e
2026-01-10T09:35:36.392897212Z └ ValueError('[ERROR: Invalid text splitter]')
2026-01-10T09:35:36.392897813Z
2026-01-10T09:35:36.392898805Z File "/app/backend/open_webui/routers/retrieval.py", line 1750, in process_file
2026-01-10T09:35:36.392899517Z result = save_docs_to_vector_db(
2026-01-10T09:35:36.392900068Z └ <function save_docs_to_vector_db at 0x7fadd991c5e0>
2026-01-10T09:35:36.392901240Z
2026-01-10T09:35:36.392901801Z File "/app/backend/open_webui/routers/retrieval.py", line 1478, in save_docs_to_vector_db
2026-01-10T09:35:36.392902452Z raise ValueError(ERROR_MESSAGES.DEFAULT("Invalid text splitter"))
2026-01-10T09:35:36.392903885Z │ └ <function ERROR_MESSAGES. at 0x7faf539c07c0>
2026-01-10T09:35:36.392904596Z └ <enum 'ERROR_MESSAGES'>
2026-01-10T09:35:36.392905428Z
2026-01-10T09:35:36.392906310Z ValueError: [ERROR: Invalid text splitter]
2026-01-10T09:35:36.398231817Z 2026-01-10 09:35:36.398 | ERROR | open_webui.routers.files:_process_handler:175 - Error processing file: 661073ec-6b4a-4172-8f29-57decd2d7c0c
2026-01-10T09:35:38.454187775Z 2026-01-10 09:35:38.454 | INFO | open_webui.routers.ollama:get_all_models:331 - get_all_models()

Additional Information

No response

Originally created by @n4gY1 on GitHub (Jan 10, 2026). Original GitHub issue: https://github.com/open-webui/open-webui/issues/20544 ### 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 Git Clone ### Open WebUI Version v0.7.1 ### Ollama Version (if applicable) _No response_ ### Operating System debian ### Browser (if applicable) _No response_ ### 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 Upload pdf document, invalid text splitter error, document not save to the database. Document settings: Docling - http://docker-docling:5001 , but not relevant. Error message: 2026-01-10T09:35:36.392893195Z process_file( 2026-01-10T09:35:36.392894247Z └ <function process_file at 0x7fadd991c720> 2026-01-10T09:35:36.392894868Z 2026-01-10T09:35:36.392895359Z > File "/app/backend/open_webui/routers/retrieval.py", line 1789, in process_file 2026-01-10T09:35:36.392896681Z raise e 2026-01-10T09:35:36.392897212Z └ ValueError('[ERROR: Invalid text splitter]') 2026-01-10T09:35:36.392897813Z 2026-01-10T09:35:36.392898805Z File "/app/backend/open_webui/routers/retrieval.py", line 1750, in process_file 2026-01-10T09:35:36.392899517Z result = save_docs_to_vector_db( 2026-01-10T09:35:36.392900068Z └ <function save_docs_to_vector_db at 0x7fadd991c5e0> 2026-01-10T09:35:36.392901240Z 2026-01-10T09:35:36.392901801Z File "/app/backend/open_webui/routers/retrieval.py", line 1478, in save_docs_to_vector_db 2026-01-10T09:35:36.392902452Z raise ValueError(ERROR_MESSAGES.DEFAULT("Invalid text splitter")) 2026-01-10T09:35:36.392903885Z │ └ <function ERROR_MESSAGES.<lambda> at 0x7faf539c07c0> 2026-01-10T09:35:36.392904596Z └ <enum 'ERROR_MESSAGES'> 2026-01-10T09:35:36.392905428Z 2026-01-10T09:35:36.392906310Z ValueError: [ERROR: Invalid text splitter] 2026-01-10T09:35:36.398231817Z 2026-01-10 09:35:36.398 | ERROR | open_webui.routers.files:_process_handler:175 - Error processing file: 661073ec-6b4a-4172-8f29-57decd2d7c0c 2026-01-10T09:35:38.454187775Z 2026-01-10 09:35:38.454 | INFO | open_webui.routers.ollama:get_all_models:331 - get_all_models() ### Actual Behavior Error when upload document. 2026-01-10T09:35:36.392893195Z process_file( 2026-01-10T09:35:36.392894247Z └ <function process_file at 0x7fadd991c720> 2026-01-10T09:35:36.392894868Z 2026-01-10T09:35:36.392895359Z > File "/app/backend/open_webui/routers/retrieval.py", line 1789, in process_file 2026-01-10T09:35:36.392896681Z raise e 2026-01-10T09:35:36.392897212Z └ ValueError('[ERROR: Invalid text splitter]') 2026-01-10T09:35:36.392897813Z 2026-01-10T09:35:36.392898805Z File "/app/backend/open_webui/routers/retrieval.py", line 1750, in process_file 2026-01-10T09:35:36.392899517Z result = save_docs_to_vector_db( 2026-01-10T09:35:36.392900068Z └ <function save_docs_to_vector_db at 0x7fadd991c5e0> 2026-01-10T09:35:36.392901240Z 2026-01-10T09:35:36.392901801Z File "/app/backend/open_webui/routers/retrieval.py", line 1478, in save_docs_to_vector_db 2026-01-10T09:35:36.392902452Z raise ValueError(ERROR_MESSAGES.DEFAULT("Invalid text splitter")) 2026-01-10T09:35:36.392903885Z │ └ <function ERROR_MESSAGES.<lambda> at 0x7faf539c07c0> 2026-01-10T09:35:36.392904596Z └ <enum 'ERROR_MESSAGES'> 2026-01-10T09:35:36.392905428Z 2026-01-10T09:35:36.392906310Z ValueError: [ERROR: Invalid text splitter] 2026-01-10T09:35:36.398231817Z 2026-01-10 09:35:36.398 | ERROR | open_webui.routers.files:_process_handler:175 - Error processing file: 661073ec-6b4a-4172-8f29-57decd2d7c0c 2026-01-10T09:35:38.454187775Z 2026-01-10 09:35:38.454 | INFO | open_webui.routers.ollama:get_all_models:331 - get_all_models() ### Steps to Reproduce Chat or knowledge upload document. ### Logs & Screenshots 2026-01-10T09:35:36.392893195Z process_file( 2026-01-10T09:35:36.392894247Z └ <function process_file at 0x7fadd991c720> 2026-01-10T09:35:36.392894868Z 2026-01-10T09:35:36.392895359Z > File "/app/backend/open_webui/routers/retrieval.py", line 1789, in process_file 2026-01-10T09:35:36.392896681Z raise e 2026-01-10T09:35:36.392897212Z └ ValueError('[ERROR: Invalid text splitter]') 2026-01-10T09:35:36.392897813Z 2026-01-10T09:35:36.392898805Z File "/app/backend/open_webui/routers/retrieval.py", line 1750, in process_file 2026-01-10T09:35:36.392899517Z result = save_docs_to_vector_db( 2026-01-10T09:35:36.392900068Z └ <function save_docs_to_vector_db at 0x7fadd991c5e0> 2026-01-10T09:35:36.392901240Z 2026-01-10T09:35:36.392901801Z File "/app/backend/open_webui/routers/retrieval.py", line 1478, in save_docs_to_vector_db 2026-01-10T09:35:36.392902452Z raise ValueError(ERROR_MESSAGES.DEFAULT("Invalid text splitter")) 2026-01-10T09:35:36.392903885Z │ └ <function ERROR_MESSAGES.<lambda> at 0x7faf539c07c0> 2026-01-10T09:35:36.392904596Z └ <enum 'ERROR_MESSAGES'> 2026-01-10T09:35:36.392905428Z 2026-01-10T09:35:36.392906310Z ValueError: [ERROR: Invalid text splitter] 2026-01-10T09:35:36.398231817Z 2026-01-10 09:35:36.398 | ERROR | open_webui.routers.files:_process_handler:175 - Error processing file: 661073ec-6b4a-4172-8f29-57decd2d7c0c 2026-01-10T09:35:38.454187775Z 2026-01-10 09:35:38.454 | INFO | open_webui.routers.ollama:get_all_models:331 - get_all_models() ### Additional Information _No response_
GiteaMirror added the bug label 2026-05-05 21:49:39 -05:00
Author
Owner

@owui-terminator[bot] commented on GitHub (Jan 10, 2026):

🔍 Similar Issues Found

I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions:

  1. #14821 issue: Failed to upload PDF file when using Docling
    by xiajianlin • Jun 10, 2025 • bug

  2. #19558 issue: When using the “Upload a document” feature in the chat, it returns the following message: “Please provide the content of the attachment. I will prepare a summary based on the information in the file.”
    by jiunmoon • Nov 28, 2025 • bug

  3. #19701 issue: knowledge can not multiple upload file
    by willy808 • Dec 03, 2025 • bug

  4. #19314 issue: cannot persist docling parameters
    by Elettrotecnica • Nov 20, 2025 • bug

  5. #18974 issue: hanging on front matter requirements after update
    by DuckyBlender • Nov 06, 2025 • bug

Show 5 more related issues
  1. #17446 issue: file upload bug from 0.6.23
    by K7cl • Sep 14, 2025 • bug

  2. #15828 issue: Unable to upload document in chat / 0.6.16
    by GlisseManTV • Jul 18, 2025 • bug

  3. #19721 issue: API /file upload and adding to collection -> "400: The content provided is empty"
    by deliciousbob • Dec 03, 2025 • bug

  4. #19805 issue: did we lose most of docling configuration options in v0.6.41?
    by eleaner • Dec 08, 2025 • bug

  5. #16252 issue: Folder issue with uploaded files (not the same as #15898)
    by nc98-ai • Aug 04, 2025 • bug


💡 Tips:

  • If this is a duplicate, please consider closing this issue and adding any additional details to the existing one
  • If you found a solution in any of these issues, please share it here to help others

This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.

<!-- gh-comment-id:3732308170 --> @owui-terminator[bot] commented on GitHub (Jan 10, 2026): 🔍 **Similar Issues Found** I found some existing issues that might be related to this one. Please check if any of these are duplicates or contain helpful solutions: 1. [#14821](https://github.com/open-webui/open-webui/issues/14821) **issue: Failed to upload PDF file when using Docling** *by xiajianlin • Jun 10, 2025 • `bug`* 2. [#19558](https://github.com/open-webui/open-webui/issues/19558) **issue: When using the “Upload a document” feature in the chat, it returns the following message: “Please provide the content of the attachment. I will prepare a summary based on the information in the file.”** *by jiunmoon • Nov 28, 2025 • `bug`* 3. [#19701](https://github.com/open-webui/open-webui/issues/19701) **issue: knowledge can not multiple upload file** *by willy808 • Dec 03, 2025 • `bug`* 4. [#19314](https://github.com/open-webui/open-webui/issues/19314) **issue: cannot persist docling parameters** *by Elettrotecnica • Nov 20, 2025 • `bug`* 5. [#18974](https://github.com/open-webui/open-webui/issues/18974) **issue: hanging on front matter requirements after update** *by DuckyBlender • Nov 06, 2025 • `bug`* <details> <summary>Show 5 more related issues</summary> 6. [#17446](https://github.com/open-webui/open-webui/issues/17446) **issue: file upload bug from 0.6.23** *by K7cl • Sep 14, 2025 • `bug`* 7. [#15828](https://github.com/open-webui/open-webui/issues/15828) **issue: Unable to upload document in chat / 0.6.16** *by GlisseManTV • Jul 18, 2025 • `bug`* 8. [#19721](https://github.com/open-webui/open-webui/issues/19721) **issue: API /file upload and adding to collection -> "400: The content provided is empty"** *by deliciousbob • Dec 03, 2025 • `bug`* 9. [#19805](https://github.com/open-webui/open-webui/issues/19805) **issue: did we lose most of docling configuration options in v0.6.41?** *by eleaner • Dec 08, 2025 • `bug`* 10. [#16252](https://github.com/open-webui/open-webui/issues/16252) **issue: Folder issue with uploaded files (not the same as #15898)** *by nc98-ai • Aug 04, 2025 • `bug`* </details> --- 💡 **Tips:** - If this is a duplicate, please consider closing this issue and adding any additional details to the existing one - If you found a solution in any of these issues, please share it here to help others *This comment was generated automatically by a bot.* Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
Author
Owner

@Classic298 commented on GitHub (Jan 10, 2026):

env vasr and document settings?

<!-- gh-comment-id:3732310755 --> @Classic298 commented on GitHub (Jan 10, 2026): env vasr and document settings?
Author
Owner

@Classic298 commented on GitHub (Jan 10, 2026):

note the change in text splitter:

📝 Administrators who previously used the standalone "Markdown (Header)" text splitter must now switch to "character" or "token" mode with the new "ENABLE_MARKDOWN_HEADER_TEXT_SPLITTER" toggle enabled, as document chunking now applies markdown header splitting as a preprocessing step before character or token splitting. Commit, Commit, Commit

<!-- gh-comment-id:3732311015 --> @Classic298 commented on GitHub (Jan 10, 2026): note the change in text splitter: 📝 Administrators who previously used the standalone "Markdown (Header)" text splitter must now switch to "character" or "token" mode with the new "ENABLE_MARKDOWN_HEADER_TEXT_SPLITTER" toggle enabled, as document chunking now applies markdown header splitting as a preprocessing step before character or token splitting. [Commit](https://github.com/open-webui/open-webui/commit/d3a682759f375c6cb0bc8c170f62863a070f712e), [Commit](https://github.com/open-webui/open-webui/commit/18a33a079bf07487edffc421a721c86194cc90c9), [Commit](https://github.com/open-webui/open-webui/commit/08bf4670ec862018f9dc57296cb19fd5eab14ef6)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#57883