when the chunk has been edited, it can not be Retrievaled again.
Self Checks
- [x] This is only for bug report, if you would like to ask a question, please head to Discussions.
- [x] I have searched for existing issues search for existing issues, including closed ones.
- [x] I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
- [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
- [x] Please do not modify this template :) and fill in all the required fields.
Dify version
1.4.1
Cloud or Self Hosted
Self Hosted (Docker)
Steps to reproduce
1、edit the chunk; 2、save the content,the chunk turns disable automatically; 3、only can enable the chunk by select it, and enable with the pop memu. the enable button is not work anymore; 4、try to retrieve the content,it doesn't work.
✔️ Expected Behavior
No response
❌ Actual Behavior
No response
Thank you for clarifying the difference between the edited and unedited chunks. Based on what you've described and what I've found in the codebase, when a chunk is edited and saved, it becomes disabled automatically and cannot be retrieved. The enable button also stops working for that chunk, and you can only re-enable it through a pop-up menu, but retrieval still fails.
The segment and chunk management logic in Dify involves enabling/disabling segments and updating their status via API calls. The functions responsible for this are useEnableSegment, useDisableSegment, and useUpdateSegment, which send PATCH requests to update the segment status or content. However, there is no documentation or code indicating why an edited chunk would become permanently disabled or unretrievable after editing, nor any recent changes that address this specific issue (source, source).
At this time, there is no known workaround or fix documented for this behavior in version 1.4.1. The issue appears to be a bug in how the system handles chunk status after editing. If you need to retrieve the chunk, you may try re-enabling it through the pop-up menu as you described, but if retrieval still fails, this confirms the bug.
If you have access to update your deployment, you may want to check for any newer releases or patches that address chunk editing and retrieval. Otherwise, further investigation by the maintainers may be required to resolve this issue in the codebase.
To reply, just mention my name @dosu.
How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other
I have overwrite the volume folder from 1.3 to 1.4.1
When using version 1.4.1, the issue described did not reappear after editing the chunk.
Ran into a similar issue - trying to import chunks and embeddings into weaviate/postgres (instead of through file upload) - the imported chunks would show "edited" and could not be disabled, also wouldn't come back in retreival.
In postgres document_segments table, they were labeled with status "waiting", which would only become "completed" if the timestamps aligned with chunks from the rest of the document which had naturally been labeled as completed.
Hope this helps in some way, although might require digging into postgres
Hi, @asking002. I'm Dosu, and I'm helping the Dify team manage their backlog and am marking this issue as stale.
Issue Summary:
- You reported a bug in Dify v1.4.1 (self-hosted via Docker) where edited chunks become disabled and cannot be re-enabled or retrieved.
- The enable button stops working after editing, and attempts to re-enable via a pop-up menu fail.
- A contributor confirmed this appears to be a bug with no current workaround in v1.4.1.
- Other users have had mixed results reproducing the issue, with some noting related chunk status problems in the Postgres database.
- No resolution or fix has been identified yet.
Next Steps:
- Please let me know if this issue is still relevant with the latest version of Dify by commenting here.
- If I don’t hear back within 15 days, I will automatically close this issue.
Thanks for your understanding and contribution!