Segment is not completed, enable or disable function is not allowed #5067

Closed
opened 2026-02-21 18:09:13 -05:00 by yindo · 2 comments
Owner

Originally created by @PolarPeak on GitHub (Aug 15, 2024).

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

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After I completed the upgrade, I tried to modify the knowledge base and add annotated data. The modified knowledge base automatically closed, and when I clicked to open it, I was prompted with "Segment is not completed, enable or disable function is not allowed." The annotated data did not take effect, and additionally, it is possible to add new knowledge base segments, but they cannot take effect. Historical knowledge bases can be referenced or recalled, but new ones cannot.

✔️ Expected Behavior

The knowledge base supports add, delete, update, and query operations as usual.

Actual Behavior

After I completed the upgrade, I tried to modify the knowledge base and add annotated data. The modified knowledge base automatically closed, and when I clicked to open it, I was prompted with "Segment is not completed, enable or disable function is not allowed." The annotated data did not take effect, and additionally, it is possible to add new knowledge base segments, but they cannot take effect. Historical knowledge bases can be referenced or recalled, but new ones cannot.

Originally created by @PolarPeak on GitHub (Aug 15, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [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. ### Dify version 0.6.10 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce After I completed the upgrade, I tried to modify the knowledge base and add annotated data. The modified knowledge base automatically closed, and when I clicked to open it, I was prompted with "Segment is not completed, enable or disable function is not allowed." The annotated data did not take effect, and additionally, it is possible to add new knowledge base segments, but they cannot take effect. Historical knowledge bases can be referenced or recalled, but new ones cannot. ### ✔️ Expected Behavior The knowledge base supports add, delete, update, and query operations as usual. ### ❌ Actual Behavior After I completed the upgrade, I tried to modify the knowledge base and add annotated data. The modified knowledge base automatically closed, and when I clicked to open it, I was prompted with "Segment is not completed, enable or disable function is not allowed." The annotated data did not take effect, and additionally, it is possible to add new knowledge base segments, but they cannot take effect. Historical knowledge bases can be referenced or recalled, but new ones cannot.
yindo added the 🐞 bug label 2026-02-21 18:09:13 -05:00
yindo closed this issue 2026-02-21 18:09:13 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 15, 2024):

The error message "Segment is not completed, enable or disable function is not allowed" indicates that the segments in your knowledge base have not been fully processed. For a segment to be considered "completed," the following conditions must be met:

  1. The document has been segmented and cleaned.
  2. The segments have been embedded.
  3. The upload process is finished.

Here are the steps to ensure your segments are completed:

  1. Upload Documents:

    • Select the document you need to upload from your local files.
    • Segment and clean the document, and preview the effect.
    • Choose and configure Index Mode and Retrieval Settings.
    • Wait for the chunks to be embedded.
    • Ensure the upload process is completed.
  2. Manual Check:

    • Manually check the segment quality before associating the knowledge base with the application. Ensure that segments are not overly short or long and do not have obvious semantic truncation.

If the issue persists, it might be related to a specific bug in version 0.6.10. You can refer to the closed issue for similar problems and potential solutions [1].

For more detailed steps on segmenting, cleaning, and embedding documents, you can refer to the documentation here [2].

To continue talking to Dosu, mention @dosu.

@dosubot[bot] commented on GitHub (Aug 15, 2024): <!-- Answer --> The error message "Segment is not completed, enable or disable function is not allowed" indicates that the segments in your knowledge base have not been fully processed. For a segment to be considered "completed," the following conditions must be met: 1. The document has been segmented and cleaned. 2. The segments have been embedded. 3. The upload process is finished. Here are the steps to ensure your segments are completed: 1. **Upload Documents**: - Select the document you need to upload from your local files. - Segment and clean the document, and preview the effect. - Choose and configure Index Mode and Retrieval Settings. - Wait for the chunks to be embedded. - Ensure the upload process is completed. 2. **Manual Check**: - Manually check the segment quality before associating the knowledge base with the application. Ensure that segments are not overly short or long and do not have obvious semantic truncation. If the issue persists, it might be related to a specific bug in version 0.6.10. You can refer to the [closed issue](https://github.com/langgenius/dify/issues/3915) for similar problems and potential solutions <sup>[[1]](https://github.com/langgenius/dify/issues/3915)</sup>. For more detailed steps on segmenting, cleaning, and embedding documents, you can refer to the documentation [here](https://github.com/langgenius/dify-docs/blob/main/en/guides/knowledge-base/create-knowledge-and-upload-documents.md) <sup>[[2]](https://github.com/langgenius/dify-docs/blob/main/en/guides/knowledge-base/create-knowledge-and-upload-documents.md)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
Author
Owner

@crazywoola commented on GitHub (Aug 15, 2024):

Try to upgrade to latest version, we will not fix old versions bug based on that tag.

@crazywoola commented on GitHub (Aug 15, 2024): Try to upgrade to latest version, we will not fix old versions bug based on that tag.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#5067