Compare commits

..

1 Commits

Author SHA1 Message Date
Pierre-Loic Doulcet 4eb2291734 Extend supported formats 2024-03-21 09:40:43 +01:00
+45 -33
View File
@@ -21,6 +21,7 @@ class ResultType(str, Enum):
"""The result type for the parser."""
TXT = "text"
MD = "markdown"
JSON = "json"
class Language(str, Enum):
BAZA = "abq"
@@ -110,53 +111,64 @@ class Language(str, Enum):
SUPPORTED_FILE_TYPES = [
".pdf",
".602",
".abw",
".cgm",
".cwk",
# Microsoft word - all versions
".doc",
".docx",
".docm",
".dot",
".dotx",
".dotm",
".hwp",
".key",
".lwp",
# Rich text format
".rtf",
# Microsoft Works
".wps",
# Word Perfect
".wpd",
# Open Office
".sxw",
".stw",
".sxg",
# Apple
".pages",
# Mac Write
".mw",
".mcw",
".pages",
".pbd",
# Unified Office Format text
".uot",
".uof",
".uos",
".uop",
# Microsoft powerpoints
".ppt",
".pptm",
".pptx",
".pot",
".potm",
".pptm",
".potx",
".rtf",
".sda",
".sdd",
".sdp",
".sdw",
".sgl",
".potm",
# Apple keynote
".key",
# Open Office Presentations
".odp",
".odg",
".otp",
".fopd",
".sxi",
".sti",
".sxi",
".sxw",
".stw",
".sxg",
".txt",
".uof",
".uop",
".uot",
".vor",
".wpd",
".wps",
".xml",
".zabw",
".epub",
".htm",
".html"
# ebook
".epub"
]
class LlamaParse(BasePydanticReader):
"""A smart-parser for files."""