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

Doc Extractor don't preserve the order with docx #13094

Open
5 tasks done
nicho2 opened this issue Jan 28, 2025 · 1 comment
Open
5 tasks done

Doc Extractor don't preserve the order with docx #13094

nicho2 opened this issue Jan 28, 2025 · 1 comment
Labels
🐞 bug Something isn't working

Comments

@nicho2
Copy link

nicho2 commented Jan 28, 2025

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.2

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

Hello,

When I have a docx document with tables, the extractor places all the tables at the beginning and the order of the document is no longer respected.

✔️ Expected Behavior

respect the order

❌ Actual Behavior

No response

Copy link

dosubot bot commented Jan 28, 2025

The issue you're experiencing with the Doc Extractor not preserving the order of elements in a DOCX document might be related to how the parse_docx method processes the document. This method is designed to maintain the order of paragraphs and tables as they appear in the document's XML structure [1][2]. If tables are being placed at the beginning, it could be due to a bug or an unexpected behavior in the code.

To address this, you might want to check if there are any modifications or customizations in your setup that could affect the order. Additionally, reviewing the implementation of the parse_docx method in your version of Dify could help identify any discrepancies. If the issue persists, consider reporting it as a bug in the repository, providing detailed steps to reproduce the problem and any relevant code snippets or configurations.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@dosubot dosubot bot added the 🐞 bug Something isn't working label Jan 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐞 bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant