From 3199e265005f8587c62581012f9c371c3137a621 Mon Sep 17 00:00:00 2001 From: Jun Siang Cheah Date: Sat, 14 Sep 2024 12:44:51 +0100 Subject: [PATCH] fix: remove unsupported .doc file ingest --- backend/open_webui/apps/rag/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/apps/rag/main.py b/backend/open_webui/apps/rag/main.py index a0d4c7d28..6d51eabc7 100644 --- a/backend/open_webui/apps/rag/main.py +++ b/backend/open_webui/apps/rag/main.py @@ -1155,7 +1155,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str): elif ( file_content_type == "application/vnd.openxmlformats-officedocument.wordprocessingml.document" - or file_ext in ["doc", "docx"] + or file_ext == "docx" ): loader = Docx2txtLoader(file_path) elif file_content_type in [