瀏覽代碼

fix: remove unsupported .doc file ingest

Jun Siang Cheah 8 月之前
父節點
當前提交
3199e26500
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      backend/open_webui/apps/rag/main.py

+ 1 - 1
backend/open_webui/apps/rag/main.py

@@ -1155,7 +1155,7 @@ def get_loader(filename: str, file_content_type: str, file_path: str):
         elif (
         elif (
             file_content_type
             file_content_type
             == "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
             == "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
-            or file_ext in ["doc", "docx"]
+            or file_ext == "docx"
         ):
         ):
             loader = Docx2txtLoader(file_path)
             loader = Docx2txtLoader(file_path)
         elif file_content_type in [
         elif file_content_type in [