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

fix: remove unsupported .doc file ingest
This commit is contained in:
Timothy Jaeryang Baek 2024-09-14 22:52:40 +01:00 committed by GitHub
commit 27baa00afb
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

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