feat: add simple pptx_extractor for etl_type=dify#24184
Conversation
|
I think this could serve as a temporary solution, at least until a RAG 2.0 is implemented and becomes widely adopted in the community—even if it gets merged. |
|
VDB tests are failing, but it seems to be unrelated to my PR. Maybe it will work if we just rerun it? |
|
Re-opened to trigger CI again🙏 |
|
Hmm, these tests are a bit flaky. Both tests fail for unrelated reasons, such as docker pull and internal HTTP requests. Let me know if there is something I should do, thanks! |
|
Wow, all checks have passed, thanks @crazywoola for re-running. |
|
Hey @kurokobo I merged this extractor in the official-plugin-repo, talked to our team, since rag 2.0 will be released by the end of the month, so we can close it and wait for the new version. |
Summary
This PR introduces simple PPTXExtractor to support PPTX files in the Knowledge in the environment with ETL_TYPE=dify (which is default deployment).
By referring existing WordExtractor with python-docx, this PR implements simple text-extaction method for PPTX:
Closes #24182
Screenshots
Example PPTX file (includes some images and tables): https://create.microsoft.com/en-us/template/business-plan-presentation-96423eb0-8e02-4a99-b83b-bc60d19202d5
Preview of Chunks, works fine for images and tables:
Checklist
dev/reformat(backend) andcd web && npx lint-staged(frontend) to appease the lint gods