fix: remove unsupported .doc file ingest

This commit is contained in:
Jun Siang Cheah 2024-09-14 12:44:51 +01:00
parent 1eec9e2b59
commit 3199e26500

View File

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