소스 검색

Merge pull request #5419 from cheahjs/fix/remove-doc-support

fix: remove unsupported .doc file ingest
Timothy Jaeryang Baek 8 달 전
부모
커밋
27baa00afb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      backend/open_webui/apps/rag/main.py

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

@@ -1160,7 +1160,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 [