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

return page number of word docx documents upon retrieval #11891

Open
5 tasks done
meetbestzhe opened this issue Dec 20, 2024 · 0 comments
Open
5 tasks done

return page number of word docx documents upon retrieval #11891

meetbestzhe opened this issue Dec 20, 2024 · 0 comments

Comments

@meetbestzhe
Copy link

meetbestzhe commented 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.
@meetbestzhe meetbestzhe changed the title return page number of docx documents upon retrieval return page number of word docx documents upon retrieval Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant