mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 10:58:17 -05:00
[GH-ISSUE #20544] issue: Document uploading - Docling API #19217
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @n4gY1 on GitHub (Jan 10, 2026).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/20544
Check Existing Issues
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
README.md.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
@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:
#14821 issue: Failed to upload PDF file when using Docling
by xiajianlin • Jun 10, 2025 •
bug#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#19701 issue: knowledge can not multiple upload file
by willy808 • Dec 03, 2025 •
bug#19314 issue: cannot persist docling parameters
by Elettrotecnica • Nov 20, 2025 •
bug#18974 issue: hanging on front matter requirements after update
by DuckyBlender • Nov 06, 2025 •
bugShow 5 more related issues
#17446 issue: file upload bug from 0.6.23
by K7cl • Sep 14, 2025 •
bug#15828 issue: Unable to upload document in chat / 0.6.16
by GlisseManTV • Jul 18, 2025 •
bug#19721 issue: API /file upload and adding to collection -> "400: The content provided is empty"
by deliciousbob • Dec 03, 2025 •
bug#19805 issue: did we lose most of docling configuration options in v0.6.41?
by eleaner • Dec 08, 2025 •
bug#16252 issue: Folder issue with uploaded files (not the same as #15898)
by nc98-ai • Aug 04, 2025 •
bug💡 Tips:
This comment was generated automatically by a bot. Please react with a 👍 if this comment was helpful, or a 👎 if it was not.
@Classic298 commented on GitHub (Jan 10, 2026):
env vasr and document settings?
@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