[GH-ISSUE #15127] issue: OPEN DOCUMENT file could not encoding in RAG #17477

Closed
opened 2026-04-19 23:14:30 -05:00 by GiteaMirror · 15 comments
Owner

Originally created by @banphi on GitHub (Jun 18, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/15127

Check Existing Issues

  • I have searched the existing issues and discussions.
  • I am using the latest version of Open WebUI.

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

  • 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

Successfully read and parsed

Actual Behavior

Display Failure.
Message error:

Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods

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:

2025-06-18 16:51:22.482 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:54238 - "GET /_app/version.json HTTP/1.1" 304 - {}
2025-06-18 16:51:38.061 | INFO | open_webui.routers.files:upload_file:94 - file.content_type: application/vnd.oasis.opendocument.spreadsheet - {}
2025-06-18 16:51:38.136 | ERROR | open_webui.routers.retrieval:process_file:1457 - Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods - {}
Traceback (most recent call last):

File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 43, in lazy_load
text = f.read()
│ └ <method 'read' of '_io.TextIOWrapper' objects>
└ <_io.TextIOWrapper name='/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods' mode='r' encoding='UTF-8'>
File "", line 322, in decode

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 10: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x7f73833f89a0>
└ <WorkerThread(AnyIO worker thread, started 140126554416832)>
File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
│ └ <function WorkerThread.run at 0x7f71e9ffa2a0>
└ <WorkerThread(AnyIO worker thread, started 140126554416832)>
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
│ │ │ ��� ()
│ │ └ functools.partial(<function upload_file at 0x7f724590c860>, user=UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='b...
│ └ <method 'run' of '_contextvars.Context' objects>
└ <_contextvars.Context object at 0x7f7382654c80>

File "/app/backend/open_webui/routers/files.py", line 181, in upload_file
process_file(request, ProcessFileForm(file_id=id), user=user)
│ │ │ │ └ UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='^^^^', email='^^^^', role='admin', profile_...
│ │ │ └ '04321e2b-2de8-48c3-b1de-536dcc5f291d'
│ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
│ └ <starlette.requests.Request object at 0x7f723e84b150>
└ <function process_file at 0x7f723e5fb560>

File "/app/backend/open_webui/routers/retrieval.py", line 1376, in process_file
docs = loader.load(
│ └ <function Loader.load at 0x7f723f4fec00>
└ <open_webui.retrieval.loaders.main.Loader object at 0x7f71e9e95850>

File "/app/backend/open_webui/retrieval/loaders/main.py", line 218, in load
docs = loader.load()
│ └ <function BaseLoader.load at 0x7f723fb4f600>
└ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0>

File "/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load
return list(self.lazy_load())
│ └ <function TextLoader.lazy_load at 0x7f723f4b20c0>
└ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0>
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load
detected_encodings = detect_file_encodings(self.file_path)
│ │ └ '/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods'
│ └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0>
└ <function detect_file_encodings at 0x7f723fa5c860>
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings
raise RuntimeError(f"Could not detect encoding for {file_path}")

RuntimeError: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods
2025-06-18 16:51:38.137 | ERROR | open_webui.routers.files:upload_file:190 - 400: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods - {}
Traceback (most recent call last):

File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 43, in lazy_load
text = f.read()
│ └ <method 'read' of '_io.TextIOWrapper' objects>
└ <_io.TextIOWrapper name='/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods' mode='r' encoding='UTF-8'>
File "", line 322, in decode

UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 10: invalid start byte

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/app/backend/open_webui/routers/retrieval.py", line 1376, in process_file
docs = loader.load(
│ └ <function Loader.load at 0x7f723f4fec00>
└ <open_webui.retrieval.loaders.main.Loader object at 0x7f71e9e95850>

File "/app/backend/open_webui/retrieval/loaders/main.py", line 218, in load
docs = loader.load()
│ └ <function BaseLoader.load at 0x7f723fb4f600>
└ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0>

File "/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load
return list(self.lazy_load())
│ └ <function TextLoader.lazy_load at 0x7f723f4b20c0>
└ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0>
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load
detected_encodings = detect_file_encodings(self.file_path)
│ │ └ '/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods'
│ └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0>
└ <function detect_file_encodings at 0x7f723fa5c860>
File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings
raise RuntimeError(f"Could not detect encoding for {file_path}")

RuntimeError: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap
self._bootstrap_inner()
│ └ <function Thread._bootstrap_inner at 0x7f73833f89a0>
└ <WorkerThread(AnyIO worker thread, started 140126554416832)>
File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner
self.run()
│ └ <function WorkerThread.run at 0x7f71e9ffa2a0>
└ <WorkerThread(AnyIO worker thread, started 140126554416832)>
File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run
result = context.run(func, *args)
│ │ │ └ ()
│ │ └ functools.partial(<function upload_file at 0x7f724590c860>, user=UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='b...
│ └ <method 'run' of '_contextvars.Context' objects>
└ <_contextvars.Context object at 0x7f7382654c80>

File "/app/backend/open_webui/routers/files.py", line 181, in upload_file
process_file(request, ProcessFileForm(file_id=id), user=user)
│ │ │ │ └ UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='^^^^', email='^^^^', role='admin', profile_...
│ │ │ └ '04321e2b-2de8-48c3-b1de-536dcc5f291d'
│ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'>
│ └ <starlette.requests.Request object at 0x7f723e84b150>
└ <function process_file at 0x7f723e5fb560>

File "/app/backend/open_webui/routers/retrieval.py", line 1464, in process_file
raise HTTPException(
└ <class 'fastapi.exceptions.HTTPException'>

fastapi.exceptions.HTTPException: 400: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods
2025-06-18 16:51:38.138 | ERROR | open_webui.routers.files:upload_file:191 - Error processing file: 04321e2b-2de8-48c3-b1de-536dcc5f291d - {}
2025-06-18 16:51:38.139 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:49118 - "POST /api/v1/files/ HTTP/1.1" 200 - {}

Screenshots (if applicable):

Image

Additional Information

I try with different files and it work: PDF, docx, png, md, jpg.

Originally created by @banphi on GitHub (Jun 18, 2025). Original GitHub issue: https://github.com/open-webui/open-webui/issues/15127 ### Check Existing Issues - [x] I have searched the existing issues and discussions. - [x] I am using the latest version of Open WebUI. ### 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 - [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 Successfully read and parsed ### Actual Behavior Display Failure. Message error: > Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods ### 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:** > 2025-06-18 16:51:22.482 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:54238 - "GET /_app/version.json HTTP/1.1" 304 - {} > 2025-06-18 16:51:38.061 | INFO | open_webui.routers.files:upload_file:94 - file.content_type: application/vnd.oasis.opendocument.spreadsheet - {} > 2025-06-18 16:51:38.136 | ERROR | open_webui.routers.retrieval:process_file:1457 - Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods - {} > Traceback (most recent call last): > > File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 43, in lazy_load > text = f.read() > │ └ <method 'read' of '_io.TextIOWrapper' objects> > └ <_io.TextIOWrapper name='/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods' mode='r' encoding='UTF-8'> > File "<frozen codecs>", line 322, in decode > > UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 10: invalid start byte > > > During handling of the above exception, another exception occurred: > > > Traceback (most recent call last): > > File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap > self._bootstrap_inner() > │ └ <function Thread._bootstrap_inner at 0x7f73833f89a0> > └ <WorkerThread(AnyIO worker thread, started 140126554416832)> > File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner > self.run() > │ └ <function WorkerThread.run at 0x7f71e9ffa2a0> > └ <WorkerThread(AnyIO worker thread, started 140126554416832)> > File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run > result = context.run(func, *args) > │ │ │ ��� () > │ │ └ functools.partial(<function upload_file at 0x7f724590c860>, user=UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='b... > │ └ <method 'run' of '_contextvars.Context' objects> > └ <_contextvars.Context object at 0x7f7382654c80> > > File "/app/backend/open_webui/routers/files.py", line 181, in upload_file > process_file(request, ProcessFileForm(file_id=id), user=user) > │ │ │ │ └ UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='^^^^', email='^^^^', role='admin', profile_... > │ │ │ └ '04321e2b-2de8-48c3-b1de-536dcc5f291d' > │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'> > │ └ <starlette.requests.Request object at 0x7f723e84b150> > └ <function process_file at 0x7f723e5fb560> > > > File "/app/backend/open_webui/routers/retrieval.py", line 1376, in process_file > docs = loader.load( > │ └ <function Loader.load at 0x7f723f4fec00> > └ <open_webui.retrieval.loaders.main.Loader object at 0x7f71e9e95850> > > File "/app/backend/open_webui/retrieval/loaders/main.py", line 218, in load > docs = loader.load() > │ └ <function BaseLoader.load at 0x7f723fb4f600> > └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0> > > File "/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load > return list(self.lazy_load()) > │ └ <function TextLoader.lazy_load at 0x7f723f4b20c0> > └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0> > File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load > detected_encodings = detect_file_encodings(self.file_path) > │ │ └ '/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods' > │ └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0> > └ <function detect_file_encodings at 0x7f723fa5c860> > File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings > raise RuntimeError(f"Could not detect encoding for {file_path}") > > RuntimeError: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods > 2025-06-18 16:51:38.137 | ERROR | open_webui.routers.files:upload_file:190 - 400: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods - {} > Traceback (most recent call last): > > File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 43, in lazy_load > text = f.read() > │ └ <method 'read' of '_io.TextIOWrapper' objects> > └ <_io.TextIOWrapper name='/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods' mode='r' encoding='UTF-8'> > File "<frozen codecs>", line 322, in decode > > UnicodeDecodeError: 'utf-8' codec can't decode byte 0x80 in position 10: invalid start byte > > > During handling of the above exception, another exception occurred: > > > Traceback (most recent call last): > > File "/app/backend/open_webui/routers/retrieval.py", line 1376, in process_file > docs = loader.load( > │ └ <function Loader.load at 0x7f723f4fec00> > └ <open_webui.retrieval.loaders.main.Loader object at 0x7f71e9e95850> > > File "/app/backend/open_webui/retrieval/loaders/main.py", line 218, in load > docs = loader.load() > │ └ <function BaseLoader.load at 0x7f723fb4f600> > └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0> > > File "/usr/local/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load > return list(self.lazy_load()) > │ └ <function TextLoader.lazy_load at 0x7f723f4b20c0> > └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0> > File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load > detected_encodings = detect_file_encodings(self.file_path) > │ │ └ '/app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods' > │ └ <langchain_community.document_loaders.text.TextLoader object at 0x7f71e9fd1ad0> > └ <function detect_file_encodings at 0x7f723fa5c860> > File "/usr/local/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings > raise RuntimeError(f"Could not detect encoding for {file_path}") > > RuntimeError: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods > > > During handling of the above exception, another exception occurred: > > > Traceback (most recent call last): > > File "/usr/local/lib/python3.11/threading.py", line 1002, in _bootstrap > self._bootstrap_inner() > │ └ <function Thread._bootstrap_inner at 0x7f73833f89a0> > └ <WorkerThread(AnyIO worker thread, started 140126554416832)> > File "/usr/local/lib/python3.11/threading.py", line 1045, in _bootstrap_inner > self.run() > │ └ <function WorkerThread.run at 0x7f71e9ffa2a0> > └ <WorkerThread(AnyIO worker thread, started 140126554416832)> > File "/usr/local/lib/python3.11/site-packages/anyio/_backends/_asyncio.py", line 967, in run > result = context.run(func, *args) > │ │ │ └ () > │ │ └ functools.partial(<function upload_file at 0x7f724590c860>, user=UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='b... > │ └ <method 'run' of '_contextvars.Context' objects> > └ <_contextvars.Context object at 0x7f7382654c80> > > > File "/app/backend/open_webui/routers/files.py", line 181, in upload_file > process_file(request, ProcessFileForm(file_id=id), user=user) > │ │ │ │ └ UserModel(id='7bccc954-7d2f-4b80-b087-9fd7a8237ed6', name='^^^^', email='^^^^', role='admin', profile_... > │ │ │ └ '04321e2b-2de8-48c3-b1de-536dcc5f291d' > │ │ └ <class 'open_webui.routers.retrieval.ProcessFileForm'> > │ └ <starlette.requests.Request object at 0x7f723e84b150> > └ <function process_file at 0x7f723e5fb560> > > File "/app/backend/open_webui/routers/retrieval.py", line 1464, in process_file > raise HTTPException( > └ <class 'fastapi.exceptions.HTTPException'> > > fastapi.exceptions.HTTPException: 400: Could not detect encoding for /app/backend/data/uploads/04321e2b-2de8-48c3-b1de-536dcc5f291d_APP BANK.ods > 2025-06-18 16:51:38.138 | ERROR | open_webui.routers.files:upload_file:191 - Error processing file: 04321e2b-2de8-48c3-b1de-536dcc5f291d - {} > 2025-06-18 16:51:38.139 | INFO | uvicorn.protocols.http.httptools_impl:send:476 - 127.0.0.1:49118 - "POST /api/v1/files/ HTTP/1.1" 200 - {} **Screenshots (if applicable):** ![Image](https://github.com/user-attachments/assets/d6dfe86c-cc32-4dbf-a3dc-68cbfe09d0b4) ### Additional Information I try with different files and it work: PDF, docx, png, md, jpg.
GiteaMirror added the bug label 2026-04-19 23:14:30 -05:00
Author
Owner

@tjbck commented on GitHub (Jun 19, 2025):

Could you share your file with us?

<!-- gh-comment-id:2986826424 --> @tjbck commented on GitHub (Jun 19, 2025): Could you share your file with us?
Author
Owner

@tjbck commented on GitHub (Jun 19, 2025):

ODT files were never supported in the first place, 81b8267e85 might've addressed the issue, testing wanted here.

<!-- gh-comment-id:2988341854 --> @tjbck commented on GitHub (Jun 19, 2025): ODT files were never supported in the first place, https://github.com/open-webui/open-webui/commit/81b8267e85d0179f4145fa32372e8424ba14e916 might've addressed the issue, testing wanted here.
Author
Owner

@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/

<!-- gh-comment-id:2988508524 --> @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/
Author
Owner

@banphi commented on GitHub (Jun 21, 2025):

Could you share your file with us?

Sure i can make a file and share, i have the same error.

app.odt

ODT files were never supported in the first place, 81b8267 might've addressed the issue, testing wanted here.

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. :)

Test and commented on commit, Pandoc have to be installed https://github.com/jgm/pandoc/releases https://pypi.org/project/pypandoc/

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.

Could not detect encoding for /app/backend/data/uploads/7ecd7565-8898-464c-ad42-f7b5083005e3_app.odt

Maybe i do something wrong.

I hope your modification will merged in the main branch.

<!-- gh-comment-id:2993624221 --> @banphi commented on GitHub (Jun 21, 2025): > Could you share your file with us? Sure i can make a file and share, i have the same error. [app.odt](https://github.com/user-attachments/files/20847118/app.odt) > ODT files were never supported in the first place, [81b8267](https://github.com/open-webui/open-webui/commit/81b8267e85d0179f4145fa32372e8424ba14e916) might've addressed the issue, testing wanted here. 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. :) > Test and commented on commit, Pandoc have to be installed https://github.com/jgm/pandoc/releases https://pypi.org/project/pypandoc/ 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. > Could not detect encoding for /app/backend/data/uploads/7ecd7565-8898-464c-ad42-f7b5083005e3_app.odt Maybe i do something wrong. I hope your modification will merged in the main branch.
Author
Owner

@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:

Installation
Pypandoc uses pandoc, so it needs an available installation of pandoc. Pypandoc provides 2 packages, "pypandoc" and "pypandoc_binary", with the second one including pandoc out of the box. The 2 packages are identical, with the only difference being that one includes pandoc, while the other don't.

If pandoc is already installed (i.e. pandoc is in the PATH), pypandoc uses the version with the higher version number, and if both are the same, the already installed version. See Specifying the location of pandoc binaries for more.

As I understand it's neccesary install pypandoc_binary instead of just pypandoc

Sorry, I don't use Docker, to do more test.

<!-- gh-comment-id:2993644738 --> @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](https://pypi.org/project/pypandoc/): > Installation > Pypandoc uses pandoc, so it needs an available installation of pandoc. Pypandoc provides 2 packages, "pypandoc" and "pypandoc_binary", with the second one including pandoc out of the box. The 2 packages are identical, with the only difference being that one includes pandoc, while the other don't. > >If pandoc is already installed (i.e. pandoc is in the PATH), pypandoc uses the version with the higher version number, and if both are the same, the already installed version. See [Specifying the location of pandoc binaries](https://pypi.org/project/pypandoc/#specifying-the-location-of-pandoc-binaries) for more. As I understand it's neccesary install `pypandoc_binary` instead of just `pypandoc` Sorry, I don't use Docker, to do more test.
Author
Owner

@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.

<!-- gh-comment-id:2993647066 --> @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.
Author
Owner

@rgaricano commented on GitHub (Jun 21, 2025):

try installing pypandoc_binary in docker (and last dev package)

<!-- gh-comment-id:2993651754 --> @rgaricano commented on GitHub (Jun 21, 2025): try installing pypandoc_binary in docker (and [last dev package](https://github.com/open-webui/open-webui/pkgs/container/open-webui))
Author
Owner

@banphi commented on GitHub (Jun 21, 2025):

try installing pypandoc_binary in docker (and last dev package)

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:

No module named 'docx'

<!-- gh-comment-id:2993768608 --> @banphi commented on GitHub (Jun 21, 2025): > try installing pypandoc_binary in docker (and [last dev package](https://github.com/open-webui/open-webui/pkgs/container/open-webui)) 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: > No module named 'docx'
Author
Owner

@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 .csv files only)
  • docx (for .doc and .docx files only)
  • epub (for .epub files only)
  • image (for all supported image file types: .bmp, .heic, .jpeg, .png, and .tiff)
  • md (for .md files only)
  • odt (for .odt files only)
  • org (for .org files only)
  • pdf (for .pdf files only)
  • pptx (for .ppt and .pptx files only)
  • rst (for .rst files only)
  • rtf (for .rtf files only)
  • tsv (for .tsv files only)
  • xlsx (for .xls and .xlsx files only)

Note that you can install multiple extras at the same time by separating them with commas.

<!-- gh-comment-id:2993809946 --> @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>]` <p>The following file type extras are available:</p> <ul> <li><code>all-docs</code> (for all supported file types in this list)</li> <li><code>csv</code> (for <code>.csv</code> files only)</li> <li><code>docx</code> (for <code>.doc</code> and <code>.docx</code> files only)</li> <li><code>epub</code> (for <code>.epub</code> files only)</li> <li><code>image</code> (for all supported image file types: <code>.bmp</code>, <code>.heic</code>, <code>.jpeg</code>, <code>.png</code>, and <code>.tiff</code>)</li> <li><code>md</code> (for <code>.md</code> files only)</li> <li><code>odt</code> (for <code>.odt</code> files only)</li> <li><code>org</code> (for <code>.org</code> files only)</li> <li><code>pdf</code> (for <code>.pdf</code> files only)</li> <li><code>pptx</code> (for <code>.ppt</code> and <code>.pptx</code> files only)</li> <li><code>rst</code> (for <code>.rst</code> files only)</li> <li><code>rtf</code> (for <code>.rtf</code> files only)</li> <li><code>tsv</code> (for <code>.tsv</code> files only)</li> <li><code>xlsx</code> (for <code>.xls</code> and <code>.xlsx</code> files only)</li> </ul> Note that you can install multiple extras at the same time by separating them with commas.
Author
Owner

@banphi commented on GitHub (Jun 22, 2025):

maybe is due to unstructured lib, it need to load all plugins, I installed it when trying ¿?

pip install unstructured[all-docs]
pip install unstructured[<extra>]

aaand it work! Thank you so much. :)

<!-- gh-comment-id:2994252597 --> @banphi commented on GitHub (Jun 22, 2025): > maybe is due to unstructured lib, it need to load all plugins, I installed it when trying ¿? > > ``` > pip install unstructured[all-docs] > pip install unstructured[<extra>] > ``` aaand it work! Thank you so much. :)
Author
Owner

@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_binary
pip install unstructured[<extra>]

The following file type extras are available:

  • all-docs (for all supported file types in this list)
  • csv (for .csv files only)
  • docx (for .doc and .docx files only)
  • epub (for .epub files only)
  • image (for all supported image file types: .bmp, .heic, .jpeg, .png, and .tiff)
  • md (for .md files only)
  • odt (for .odt files only)
  • org (for .org files only)
  • pdf (for .pdf files only)
  • pptx (for .ppt and .pptx files only)
  • rst (for .rst files only)
  • rtf (for .rtf files only)
  • tsv (for .tsv files only)
  • xlsx (for .xls and .xlsx files only)

Note that you can install multiple extras at the same time by separating them with commas.

<!-- gh-comment-id:2994321527 --> @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_binary` `pip install unstructured[<extra>]` <p>The following file type extras are available:</p> <ul> <li><code>all-docs</code> (for all supported file types in this list)</li> <li><code>csv</code> (for <code>.csv</code> files only)</li> <li><code>docx</code> (for <code>.doc</code> and <code>.docx</code> files only)</li> <li><code>epub</code> (for <code>.epub</code> files only)</li> <li><code>image</code> (for all supported image file types: <code>.bmp</code>, <code>.heic</code>, <code>.jpeg</code>, <code>.png</code>, and <code>.tiff</code>)</li> <li><code>md</code> (for <code>.md</code> files only)</li> <li><code>odt</code> (for <code>.odt</code> files only)</li> <li><code>org</code> (for <code>.org</code> files only)</li> <li><code>pdf</code> (for <code>.pdf</code> files only)</li> <li><code>pptx</code> (for <code>.ppt</code> and <code>.pptx</code> files only)</li> <li><code>rst</code> (for <code>.rst</code> files only)</li> <li><code>rtf</code> (for <code>.rtf</code> files only)</li> <li><code>tsv</code> (for <code>.tsv</code> files only)</li> <li><code>xlsx</code> (for <code>.xls</code> and <code>.xlsx</code> files only)</li> </ul> Note that you can install multiple extras at the same time by separating them with commas.
Author
Owner

@banphi commented on GitHub (Jun 23, 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_binary pip install unstructured[<extra>]

The following file type extras are available:

* `all-docs` (for all supported file types in this list)

* `csv` (for `.csv` files only)

* `docx` (for `.doc` and `.docx` files only)

* `epub` (for `.epub` files only)

* `image` (for all supported image file types: `.bmp`, `.heic`, `.jpeg`, `.png`, and `.tiff`)

* `md` (for `.md` files only)

* `odt` (for `.odt` files only)

* `org` (for `.org` files only)

* `pdf` (for `.pdf` files only)

* `pptx` (for `.ppt` and `.pptx` files only)

* `rst` (for `.rst` files only)

* `rtf` (for `.rtf` files only)

* `tsv` (for `.tsv` files only)

* `xlsx` (for `.xls` and `.xlsx` files only)

Note that you can install multiple extras at the same time by separating them with commas.

can i point out that there is excel extension but there isn't ods? ˙◠˙

<!-- gh-comment-id:2996758594 --> @banphi commented on GitHub (Jun 23, 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_binary` `pip install unstructured[<extra>]` > > The following file type extras are available: > > * `all-docs` (for all supported file types in this list) > > * `csv` (for `.csv` files only) > > * `docx` (for `.doc` and `.docx` files only) > > * `epub` (for `.epub` files only) > > * `image` (for all supported image file types: `.bmp`, `.heic`, `.jpeg`, `.png`, and `.tiff`) > > * `md` (for `.md` files only) > > * `odt` (for `.odt` files only) > > * `org` (for `.org` files only) > > * `pdf` (for `.pdf` files only) > > * `pptx` (for `.ppt` and `.pptx` files only) > > * `rst` (for `.rst` files only) > > * `rtf` (for `.rtf` files only) > > * `tsv` (for `.tsv` files only) > > * `xlsx` (for `.xls` and `.xlsx` files only) > > > Note that you can install multiple extras at the same time by separating them with commas. can i point out that there is excel extension but there isn't ods? ˙◠˙
Author
Owner

@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:

import ezodf

doc = ezodf.opendoc('yourfile.ods')
for sheet in doc.sheets:
    print(sheet.name)
    for row in sheet.rows():
        for cell in row:
            print(cell.value)

e.g.2

import ezodf

def ods_to_txt(ods_file_path, txt_file_path):
    # Load the .ods spreadsheet
    ezodf.config.set_table_expand_strategy('all')  # Load all rows/cols
    doc = ezodf.opendoc(ods_file_path)

    # Use the first sheet
    sheet = doc.sheets[0]

    with open(txt_file_path, 'w', encoding='utf-8') as txt_file:
        for row in sheet.rows():
            values = [cell.value if cell.value is not None else "" for cell in row]
            line = '\t'.join(map(str, values))  # Tab-separated
            txt_file.write(line + '\n')

    print(f"Converted '{ods_file_path}' to '{txt_file_path}' successfully.")

# Example usage
ods_to_txt("example.ods", "output.txt")

e.g.1 with pandas lib

import pandas as pd

# Load all sheets from the ODS file
sheets = pd.read_excel('yourfile.ods', engine='odf', sheet_name=None)

for sheet_name, df in sheets.items():
    print(sheet_name)
    for _, row in df.iterrows():
        for cell in row:
            print(cell)

e.g.2

import pandas as pd

def ods_to_txt_with_pandas(ods_file_path, txt_file_path, sheet_name=0):
    # Read the ODS file (specify sheet by index or name)
    df = pd.read_excel(ods_file_path, engine="odf", sheet_name=sheet_name)

    # Replace NaN with empty string and write to txt file (tab-separated)
    df.fillna('', inplace=True)
    df.to_csv(txt_file_path, sep='\t', index=False, header=True)

    print(f"Converted '{ods_file_path}' to '{txt_file_path}' using pandas.")

# Example usage
ods_to_txt_with_pandas("example.ods", "output.txt")
<!-- gh-comment-id:2997710952 --> @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: ``` import ezodf doc = ezodf.opendoc('yourfile.ods') for sheet in doc.sheets: print(sheet.name) for row in sheet.rows(): for cell in row: print(cell.value) ``` e.g.2 ``` import ezodf def ods_to_txt(ods_file_path, txt_file_path): # Load the .ods spreadsheet ezodf.config.set_table_expand_strategy('all') # Load all rows/cols doc = ezodf.opendoc(ods_file_path) # Use the first sheet sheet = doc.sheets[0] with open(txt_file_path, 'w', encoding='utf-8') as txt_file: for row in sheet.rows(): values = [cell.value if cell.value is not None else "" for cell in row] line = '\t'.join(map(str, values)) # Tab-separated txt_file.write(line + '\n') print(f"Converted '{ods_file_path}' to '{txt_file_path}' successfully.") # Example usage ods_to_txt("example.ods", "output.txt") ``` e.g.1 with pandas lib ``` import pandas as pd # Load all sheets from the ODS file sheets = pd.read_excel('yourfile.ods', engine='odf', sheet_name=None) for sheet_name, df in sheets.items(): print(sheet_name) for _, row in df.iterrows(): for cell in row: print(cell) ``` e.g.2 ``` import pandas as pd def ods_to_txt_with_pandas(ods_file_path, txt_file_path, sheet_name=0): # Read the ODS file (specify sheet by index or name) df = pd.read_excel(ods_file_path, engine="odf", sheet_name=sheet_name) # Replace NaN with empty string and write to txt file (tab-separated) df.fillna('', inplace=True) df.to_csv(txt_file_path, sep='\t', index=False, header=True) print(f"Converted '{ods_file_path}' to '{txt_file_path}' using pandas.") # Example usage ods_to_txt_with_pandas("example.ods", "output.txt") ```
Author
Owner

@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

File "/home/retd/open-webui/backend/open_webui/routers/retrieval.py", line 1376, in process_file
   docs = loader.load(
          │      └ <function Loader.load at 0x7fcf533c34c0>
          └ <open_webui.retrieval.loaders.main.Loader object at 0x7fcf025da0d0>

 File "/home/retd/open-webui/backend/open_webui/retrieval/loaders/main.py", line 218, in load
   docs = loader.load()
          │      └ <function BaseLoader.load at 0x7fcf5389d8a0>
          └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090>

 File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load
   return list(self.lazy_load())
               │    └ <function TextLoader.lazy_load at 0x7fcf533a6840>
               └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090>
 File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load
   detected_encodings = detect_file_encodings(self.file_path)
                        │                     │    └ '/home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture...
                        │                     └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090>
                        └ <function detect_file_encodings at 0x7fcf5389e7a0>
 File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings
   raise RuntimeError(f"Could not detect encoding for {file_path}")

RuntimeError: Could not detect encoding for /home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture.doc
2025-07-08 18:08:16.270 | ERROR    | open_webui.routers.files:upload_file:190 - 400: Could not detect encoding for /home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture.doc - {}
Traceback (most recent call last):

 File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 43, in lazy_load
   text = f.read()
          │ └ <method 'read' of '_io.TextIOWrapper' objects>
          └ <_io.TextIOWrapper name='/home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien ...
 File "<frozen codecs>", line 322, in decode

UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte


During handling of the above exception, another exception occurred:


Traceback (most recent call last):

 File "/home/retd/open-webui/backend/open_webui/routers/retrieval.py", line 1376, in process_file
   docs = loader.load(
          │      └ <function Loader.load at 0x7fcf533c34c0>
          └ <open_webui.retrieval.loaders.main.Loader object at 0x7fcf025da0d0>

 File "/home/retd/open-webui/backend/open_webui/retrieval/loaders/main.py", line 218, in load
   docs = loader.load()
          │      └ <function BaseLoader.load at 0x7fcf5389d8a0>
          └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090>

 File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load
   return list(self.lazy_load())
               │    └ <function TextLoader.lazy_load at 0x7fcf533a6840>
               └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090>
 File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load
   detected_encodings = detect_file_encodings(self.file_path)
                        │                     │    └ '/home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture...
                        │                     └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090>
                        └ <function detect_file_encodings at 0x7fcf5389e7a0>
 File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings
   raise RuntimeError(f"Could not detect encoding for {file_path}")

RuntimeError: Could not detect encoding for /home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture.doc
<!-- gh-comment-id:3049529631 --> @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[<extra>] has not helped ``` File "/home/retd/open-webui/backend/open_webui/routers/retrieval.py", line 1376, in process_file docs = loader.load( │ └ <function Loader.load at 0x7fcf533c34c0> └ <open_webui.retrieval.loaders.main.Loader object at 0x7fcf025da0d0> File "/home/retd/open-webui/backend/open_webui/retrieval/loaders/main.py", line 218, in load docs = loader.load() │ └ <function BaseLoader.load at 0x7fcf5389d8a0> └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090> File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load return list(self.lazy_load()) │ └ <function TextLoader.lazy_load at 0x7fcf533a6840> └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090> File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load detected_encodings = detect_file_encodings(self.file_path) │ │ └ '/home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture... │ └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090> └ <function detect_file_encodings at 0x7fcf5389e7a0> File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings raise RuntimeError(f"Could not detect encoding for {file_path}") RuntimeError: Could not detect encoding for /home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture.doc 2025-07-08 18:08:16.270 | ERROR | open_webui.routers.files:upload_file:190 - 400: Could not detect encoding for /home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture.doc - {} Traceback (most recent call last): File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 43, in lazy_load text = f.read() │ └ <method 'read' of '_io.TextIOWrapper' objects> └ <_io.TextIOWrapper name='/home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien ... File "<frozen codecs>", line 322, in decode UnicodeDecodeError: 'utf-8' codec can't decode byte 0xd0 in position 0: invalid continuation byte During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/retd/open-webui/backend/open_webui/routers/retrieval.py", line 1376, in process_file docs = loader.load( │ └ <function Loader.load at 0x7fcf533c34c0> └ <open_webui.retrieval.loaders.main.Loader object at 0x7fcf025da0d0> File "/home/retd/open-webui/backend/open_webui/retrieval/loaders/main.py", line 218, in load docs = loader.load() │ └ <function BaseLoader.load at 0x7fcf5389d8a0> └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090> File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_core/document_loaders/base.py", line 32, in load return list(self.lazy_load()) │ └ <function TextLoader.lazy_load at 0x7fcf533a6840> └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090> File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/text.py", line 46, in lazy_load detected_encodings = detect_file_encodings(self.file_path) │ │ └ '/home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture... │ └ <langchain_community.document_loaders.text.TextLoader object at 0x7fcf024d7090> └ <function detect_file_encodings at 0x7fcf5389e7a0> File "/home/retd/open-webui/backend/.venv/lib/python3.11/site-packages/langchain_community/document_loaders/helpers.py", line 50, in detect_file_encodings raise RuntimeError(f"Could not detect encoding for {file_path}") RuntimeError: Could not detect encoding for /home/retd/open-webui/backend/data/uploads/07e73259-7a53-4474-9a58-0b82b406af74_I-ECP01 - Entretien de la Cabine de Peinture.doc ```
Author
Owner

@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.

<!-- gh-comment-id:3049816943 --> @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.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/open-webui#17477