return page number of word docx documents upon retrieval #7314

Closed
opened 2026-02-21 18:19:58 -05:00 by yindo · 1 comment
Owner

Originally created by @meetbestzhe on GitHub (Dec 20, 2024).

Self Checks

  • 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.

1. Is this request related to a challenge you're experiencing? Tell me about your story.

I can get pdf page number follow https://github.com/langgenius/dify/pull/7749
but It doesn't work when get docx page number.

2. Additional context or comments

When get word docx page number,It will show
Exception in thread Thread-51 (_retriever):
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner
self.run()
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run
self._target(*self._args, **self._kwargs)
File "E:\03Work\26AILearn\difysourcecode\dify\api\core\rag\retrieval\dataset_retrieval.py", line 531, in _retriever
documents = RetrievalService.retrieve(
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "E:\03Work\26AILearn\difysourcecode\dify\api\core\rag\datasource\retrieval_service.py", line 106, in retrieve
raise Exception(exception_message)
Exception: Error during query: [{'locations': [{'column': 22833, 'line': 1}], 'message': 'Cannot query field "page" on type "Vector_index_d9e5bc2b_a1e0_4080_b4a4_4edb59e559a2_Node".', 'path': None}]

3. Can you help us with this feature?

  • I am interested in contributing to this feature.
Originally created by @meetbestzhe on GitHub (Dec 20, 2024). ### Self Checks - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### 1. Is this request related to a challenge you're experiencing? Tell me about your story. I can get pdf page number follow [https://github.com/langgenius/dify/pull/7749](url) but It doesn't work when get docx page number. ### 2. Additional context or comments When get word docx page number,It will show Exception in thread Thread-51 (_retriever): Traceback (most recent call last): File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 1038, in _bootstrap_inner self.run() File "C:\Users\Administrator\AppData\Local\Programs\Python\Python311\Lib\threading.py", line 975, in run self._target(*self._args, **self._kwargs) File "E:\03Work\26AILearn\difysourcecode\dify\api\core\rag\retrieval\dataset_retrieval.py", line 531, in _retriever documents = RetrievalService.retrieve( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "E:\03Work\26AILearn\difysourcecode\dify\api\core\rag\datasource\retrieval_service.py", line 106, in retrieve raise Exception(exception_message) Exception: Error during query: [{'locations': [{'column': 22833, 'line': 1}], 'message': 'Cannot query field "page" on type "Vector_index_d9e5bc2b_a1e0_4080_b4a4_4edb59e559a2_Node".', 'path': None}] ### 3. Can you help us with this feature? - [X] I am interested in contributing to this feature.
yindo closed this issue 2026-02-21 18:19:58 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jan 20, 2025):

Hi, @meetbestzhe. I'm Dosu, and I'm helping the Dify team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You are experiencing an issue with extracting page numbers from Word docx documents.
  • This feature currently works for PDFs but throws an exception error for docx files.
  • You have expressed interest in contributing to a solution for this feature.
  • There have been no further comments or developments on this issue.

Next Steps:

  • Please let me know if this issue is still relevant to the latest version of the Dify repository by commenting here.
  • If there is no further activity, this issue will be automatically closed in 15 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Jan 20, 2025): Hi, @meetbestzhe. I'm [Dosu](https://dosu.dev), and I'm helping the Dify team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You are experiencing an issue with extracting page numbers from Word docx documents. - This feature currently works for PDFs but throws an exception error for docx files. - You have expressed interest in contributing to a solution for this feature. - There have been no further comments or developments on this issue. **Next Steps:** - Please let me know if this issue is still relevant to the latest version of the Dify repository by commenting here. - If there is no further activity, this issue will be automatically closed in 15 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7314