mirror of
https://github.com/open-webui/open-webui.git
synced 2026-07-15 21:19:39 -05:00
[GH-ISSUE #15127] issue: OPEN DOCUMENT file could not encoding in RAG #17477
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 @banphi on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15127
Check Existing Issues
Installation Method
Docker
Open WebUI Version
v0.6.15 (latest)
Ollama Version (if applicable)
0.9.2
Operating System
Nobara Linux 42
Browser (if applicable)
Firefox 139.0
Confirmation
README.md.Expected Behavior
Successfully read and parsed
Actual Behavior
Display Failure.
Message error:
Steps to Reproduce
Try to upload an ODT or a ODS file.
Logs & Screenshots
Browser Console Logs:
[Include relevant browser console logs, if applicable]
Docker Container Logs:
Screenshots (if applicable):
Additional Information
I try with different files and it work: PDF, docx, png, md, jpg.
@tjbck commented on GitHub (Jun 19, 2025):
Could you share your file with us?
@tjbck commented on GitHub (Jun 19, 2025):
ODT files were never supported in the first place,
81b8267e85might've addressed the issue, testing wanted here.@rgaricano commented on GitHub (Jun 19, 2025):
Test and commented on commit,
Pandoc have to be installed
https://github.com/jgm/pandoc/releases
https://pypi.org/project/pypandoc/
@banphi commented on GitHub (Jun 21, 2025):
Sure i can make a file and share, i have the same error.
app.odt
the first thing i would have thought of implementing are open documents, i would have started with those, but i realize that they are probably also the least popular. :)
Thank you for it, i try to modify the main.py file and install pandoc in the docker image (there was alredy an older version so i upgraded it) and on my machine (just in case) but i receive the same error.
Maybe i do something wrong.
I hope your modification will merged in the main branch.
@rgaricano commented on GitHub (Jun 21, 2025):
I checked again and saw that pyPandoc is listed in the requirements and installed, but, as I showed, it was giving errors.
It work after I installed the binary (.deb) version of Pandoc from https://github.com/jgm/pandoc/releases.
& in pyPandoc readme:
As I understand it's neccesary install
pypandoc_binaryinstead of justpypandocSorry, I don't use Docker, to do more test.
@banphi commented on GitHub (Jun 21, 2025):
Thank you, i will make more test.
However, I hope that this behavior will be corrected with a future release.
Edit: nope. I install the binary too (.deb) and it doesn't work. Maybe i make some mistake.
Anyway thank you.
@rgaricano commented on GitHub (Jun 21, 2025):
try installing pypandoc_binary in docker (and last dev package)
@banphi commented on GitHub (Jun 21, 2025):
I tried to follow your instructions and I must say that the error message has changed, but it still doesn't work.
This is the new error:
@rgaricano commented on GitHub (Jun 21, 2025):
maybe is due to unstructured lib, it need to load all plugins, I installed it when trying ¿?
pip install unstructured[all-docs]or
pip install unstructured[<extra>]The following file type extras are available:
all-docs(for all supported file types in this list)csv(for.csvfiles only)docx(for.docand.docxfiles only)epub(for.epubfiles only)image(for all supported image file types:.bmp,.heic,.jpeg,.png, and.tiff)md(for.mdfiles only)odt(for.odtfiles only)org(for.orgfiles only)pdf(for.pdffiles only)pptx(for.pptand.pptxfiles only)rst(for.rstfiles only)rtf(for.rtffiles only)tsv(for.tsvfiles only)xlsx(for.xlsand.xlsxfiles only)Note that you can install multiple extras at the same time by separating them with commas.
@banphi commented on GitHub (Jun 22, 2025):
aaand it work! Thank you so much. :)
@rgaricano commented on GitHub (Jun 22, 2025):
Make a note of this to complete the libraries needed for it to work (which need to be added to requirements.txt):
pip install pypandoc_binarypip install unstructured[<extra>]The following file type extras are available:
all-docs(for all supported file types in this list)csv(for.csvfiles only)docx(for.docand.docxfiles only)epub(for.epubfiles only)image(for all supported image file types:.bmp,.heic,.jpeg,.png, and.tiff)md(for.mdfiles only)odt(for.odtfiles only)org(for.orgfiles only)pdf(for.pdffiles only)pptx(for.pptand.pptxfiles only)rst(for.rstfiles only)rtf(for.rtffiles only)tsv(for.tsvfiles only)xlsx(for.xlsand.xlsxfiles only)Note that you can install multiple extras at the same time by separating them with commas.
@banphi commented on GitHub (Jun 23, 2025):
can i point out that there is excel extension but there isn't ods? ˙◠˙
@rgaricano commented on GitHub (Jun 23, 2025):
yes, those are the supported types of unstructured & ods isn't supported by it.
A way to import(to text) ods files could be with ezodf lib or with pandas:
e.g.1 with ezodf:
e.g.2
e.g.1 with pandas lib
e.g.2
@sancelot commented on GitHub (Jul 8, 2025):
I add same problem with .doc file, but in a dev environment
pip install pypandoc_binary pip install unstructured[] has not helped
@sancelot commented on GitHub (Jul 8, 2025):
hum...my .doc seems very old (word 2003)..... convert it to more recent formats will work.but shame.