Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.
Python agentagentic-aiagentic-frameworkagentic-workflowaiautomationclaudedeepseekgenaigptllmlow-codemcpnextjsno-codeopenaipythonskillsworkflow
del doc support (#2494)
Jyong20b932da9758
diff --git a/api/core/data_loader/file_extractor.py b/api/core/data_loader/file_extractor.pyindex 4a6eb3654d8..4741014c963 100644--- a/api/core/data_loader/file_extractor.py+++ b/api/core/data_loader/file_extractor.py@@ -69,7 +69,7 @@ class FileExtractor:else MarkdownLoader(file_path, autodetect_encoding=True)elif file_extension in ['.htm', '.html']:loader = HTMLLoader(file_path)- elif file_extension in ['.docx', '.doc']:+ elif file_extension in ['.docx']:loader = Docx2txtLoader(file_path)elif file_extension == '.csv':loader = CSVLoader(file_path, autodetect_encoding=True)@@ -96,7 +96,7 @@ class FileExtractor:loader = MarkdownLoader(file_path, autodetect_encoding=True)elif file_extension in ['.htm', '.html']:loader = HTMLLoader(file_path)- elif file_extension in ['.docx', '.doc']:+ elif file_extension in ['.docx']:loader = Docx2txtLoader(file_path)elif file_extension == '.csv':loader = CSVLoader(file_path, autodetect_encoding=True)diff --git a/api/services/file_service.py b/api/services/file_service.pyindex 3c56e6808e7..215ccf688a9 100644--- a/api/services/file_service.py+++ b/api/services/file_service.py@@ -20,9 +20,9 @@ from services.errors.file import FileTooLargeError, UnsupportedFileTypeErrorIMAGE_EXTENSIONS = ['jpg', 'jpeg', 'png', 'webp', 'gif', 'svg']IMAGE_EXTENSIONS.extend([ext.upper() for ext in IMAGE_EXTENSIONS])-ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx', 'docx', 'doc', 'csv'] + IMAGE_EXTENSIONS+ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx', 'docx', 'csv'] + IMAGE_EXTENSIONSUNSTRUSTURED_ALLOWED_EXTENSIONS = ['txt', 'markdown', 'md', 'pdf', 'html', 'htm', 'xlsx',- 'docx', 'doc', 'csv', 'eml', 'msg', 'pptx', 'ppt', 'xml'] + IMAGE_EXTENSIONS+ 'docx', 'csv', 'eml', 'msg', 'pptx', 'ppt', 'xml'] + IMAGE_EXTENSIONSPREVIEW_WORDS_LIMIT = 3000@@ -162,7 +162,7 @@ class FileService:generator = storage.load(upload_file.key, stream=True)return generator, upload_file.mime_type-+@staticmethoddef get_public_image_preview(file_id: str) -> str:upload_file = db.session.query(UploadFile) \