Skip to content

feat(document-extractor): support OpenDocument text files - #203

Merged
WH-2099 merged 3 commits into
langgenius:mainfrom
Zenine:codex/opendocument-file-support
Jul 6, 2026
Merged

WH-2099 merged 3 commits into
langgenius:mainfrom
Zenine:codex/opendocument-file-support

Conversation

@Zenine

@Zenine Zenine commented Jul 1, 2026

Copy link
Copy Markdown
Contributor

Important

  1. Make sure you have read our contribution guidelines
  2. Search existing issues and pull requests to confirm this change is not a duplicate
  3. Open or identify the issue this pull request resolves or advances
  4. Use a Conventional Commits title for this pull request, and mark breaking changes with !
  5. Remember that the pull request title will become the squash merge commit message
  6. If CLA Assistant prompts you, sign CLA.md in the pull request conversation

Related Issue

Closes #202

Summary

  • classify .odt and application/vnd.oasis.opendocument.text as document files
  • classify common WPS Office document MIME types as document files
  • add an ODT document extractor that reuses the existing unstructured partition path
  • cover file type standardization, extractor dispatch, and ODT error wrapping with tests

Checklist

  • This pull request links the issue it resolves or advances
  • This pull request title follows Conventional Commits, and any breaking change is marked with !
  • If CLA Assistant prompted me, I signed CLA.md in the pull request conversation

Validation

  • uv run pytest tests/file/test_file_factory.py tests/nodes/document_extractor/test_dispatch.py -q
  • uv run ruff format --check src/graphon/file/constants.py src/graphon/file/file_factory.py src/graphon/nodes/document_extractor/node.py tests/file/test_file_factory.py tests/nodes/document_extractor/test_dispatch.py
  • uv run ruff check src/graphon/file/constants.py src/graphon/file/file_factory.py src/graphon/nodes/document_extractor/node.py tests/file/test_file_factory.py tests/nodes/document_extractor/test_dispatch.py
  • uv run ty check
  • uv run pytest
  • uv run prek validate-config prek.toml && uv lock --check && uv run ruff format --check && uv run ruff check && uv run ty check

@github-actions

github-actions Bot commented Jul 1, 2026 •

Copy link
Copy Markdown

All contributors on this pull request have signed the CLA.
Posted by the CLA Assistant Lite bot.

@Zenine

Zenine commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

I have read the CLA Document and I hereby sign the CLA

@Zenine

Zenine commented Jul 3, 2026

Copy link
Copy Markdown
Contributor Author

recheck

@Zenine
Zenine marked this pull request as ready for review July 3, 2026 01:09
@dosubot dosubot Bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request labels Jul 3, 2026
@dosubot dosubot Bot added the lgtm This PR has been approved by a maintainer label Jul 6, 2026
@WH-2099
WH-2099 merged commit 41a3feb into langgenius:main Jul 6, 2026
5 checks passed
@laipz8200 laipz8200 mentioned this pull request Jul 29, 2026
2 of 19 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support OpenDocument text files in document extraction

2 participants