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

数据集的段无法禁用 #1370

Closed
wangrg opened this issue Oct 18, 2023 · 6 comments
Closed

数据集的段无法禁用 #1370

wangrg opened this issue Oct 18, 2023 · 6 comments
Assignees
Labels
🐞 bug Something isn't working

Comments

@wangrg
Copy link

wangrg commented Oct 18, 2023

Dify version

0.3.22

Cloud or Self Hosted

Cloud

Steps to reproduce

在文档段落页面,点击禁用某个分段。显示成功,过会刷新后,又变成了启用状态。查看了开源代码,大概率是在异步删除分段的向量数据时报错,导致状态又复原了。
具体删除分段的向量数据代码在:api/tasks/disable_segment_from_index_task.py

✔️ Expected Behavior

不需要复原状态。因为在从数据集中查询相关上下文时会过滤状态为false的分段。

❌ Actual Behavior

状态又复原了

@wangrg wangrg added the 🐞 bug Something isn't working label Oct 18, 2023
@crazywoola
Copy link
Member

Our cloud version is v0.3.28, is this self hosted? Can you try to upgrade to latest version?

@wangrg
Copy link
Author

wangrg commented Oct 19, 2023

v0.3.28上也是一样的。包括api/tasks/remove_document_from_index_task,api/task/enable_segment_to_index_task.py都会在异常时恢复状态

@wangrg
Copy link
Author

wangrg commented Oct 25, 2023

image 就是这个异常导致一直无法禁用,会恢复状态。还有一疑问请教一下:什么情况下会导致整个数据集的分段都无法进行类似操作了,都报一样的错误。

@crazywoola
Copy link
Member

image 就是这个异常导致一直无法禁用,会恢复状态。还有一疑问请教一下:什么情况下会导致整个数据集的分段都无法进行类似操作了,都报一样的错误。

可能是删除文件成功了,但是其他删除步骤失败了。

@wangrg
Copy link
Author

wangrg commented Nov 29, 2023

能否在删除weaviate向量时,如果抛出的错误是404的,直接捕获错误让其正常删除

@crazywoola
Copy link
Member

能否在删除weaviate向量时,如果抛出的错误是404的,直接捕获错误让其正常删除

@JohnJyong

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

No branches or pull requests

3 participants