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

segment can not be used when enable by api after disable #10373

Closed
5 tasks done
chzphoenix opened this issue Nov 6, 2024 · 1 comment · Fixed by #10445
Closed
5 tasks done

segment can not be used when enable by api after disable #10373

chzphoenix opened this issue Nov 6, 2024 · 1 comment · Fixed by #10445
Assignees
Labels
🐞 bug Something isn't working

Comments

@chzphoenix
Copy link
Contributor

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

lastest

Cloud or Self Hosted

Self Hosted (Docker), Self Hosted (Source)

Steps to reproduce

1、disable segment by api
2、enable it by api(content not change)

✔️ Expected Behavior

segment can be retrievaled

❌ Actual Behavior

segment can not be retrievaled
because it is not added in vector databset

@dosubot dosubot bot added the 🐞 bug Something isn't working label Nov 6, 2024
Copy link

dosubot bot commented Nov 6, 2024

Hello @chzphoenix! I'm here to help you with any bugs, questions, or contributions you have for this project. Let's work together to solve this issue!

I found a similar issue that might be related to your problem. The issue titled 数据集的段无法禁用 was closed and involved problems with enabling and disabling segments. The suggested solution was to handle errors when deleting Weaviate vectors by capturing 404 errors and allowing the deletion to proceed normally [1].

Regarding your issue, it seems that when a segment is re-enabled after being disabled, it should be added back to the vector database. However, if this is not happening, it might be due to a problem in the re-indexing process. Unfortunately, I couldn't find specific information on how Dify handles re-indexing of segments when they are re-enabled. It might be worth checking if there are any logs or error messages that could provide more insight into why the segment is not being added back to the vector database. Additionally, ensure that the segment is in a "completed" status and that the necessary permissions are in place when performing these actions via the API [2].

To continue talking to Dosu, mention @dosu.

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

Successfully merging a pull request may close this issue.

2 participants