Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend supported formats #110

Merged
merged 1 commit into from Mar 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
52 changes: 50 additions & 2 deletions llama_parse/base.py
Expand Up @@ -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"
Expand Down Expand Up @@ -110,13 +111,60 @@ class Language(str, Enum):

SUPPORTED_FILE_TYPES = [
".pdf",
".xml"
# Microsoft word - all versions
".doc",
".docx",
".pptx",
".docm",
".dot",
".dotx",
".dotm",
# Rich text format
".rtf",
# Microsoft Works
".wps",
# Word Perfect
".wpd",

# Open Office
".sxw",
".stw",
".sxg",

# Apple
".pages",

# Mac Write
".mw",
".mcw",


# Unified Office Format text
".uot",
".uof",
".uos",
".uop",

# Microsoft powerpoints
".ppt",
".pptx",
".pot",
".pptm",
".potx",
".potm",


# Apple keynote
".key",

# Open Office Presentations
".odp",
".odg",
".otp",
".fopd",
".sxi",
".sti",

# ebook
".epub"
]

Expand Down