Skip to content

Commit

Permalink
Added description for .ppt, specify the reason for unstructured.io (l…
Browse files Browse the repository at this point in the history
…anggenius#9452)

Co-authored-by: crazywoola <[email protected]>
  • Loading branch information
Theysua and crazywoola authored Oct 24, 2024
1 parent e71f494 commit 88dec6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions api/core/rag/extractor/extract_processor.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ def extract(
extractor = UnstructuredEmailExtractor(file_path, unstructured_api_url, unstructured_api_key)
elif file_extension == ".ppt":
extractor = UnstructuredPPTExtractor(file_path, unstructured_api_url, unstructured_api_key)
# You must first specify the API key
# because unstructured_api_key is necessary to parse .ppt documents
elif file_extension == ".pptx":
extractor = UnstructuredPPTXExtractor(file_path, unstructured_api_url, unstructured_api_key)
elif file_extension == ".xml":
Expand Down

0 comments on commit 88dec6e

Please sign in to comment.