MaxKB
MaxKB copied to clipboard
[FEATURE] 文档关联的图片在库里保存后无法随着文档的删除而删除
MaxKB 版本
v1.4.1
请描述您的需求或者改进建议
- 文档解析后的图片以及段落编辑中上传的图片,建议随着文档的删除或者段落的删除,从postgresql里删除。
- 相同的图片上传由于id是随机生成的,会多次存储,建议去重校验。
- 目前image表是增量的。
请描述你建议的实现方案
- image表里是否可以增加document_id 关联
- image.image字段是否可以去重
附加信息
No response
考虑一下
当前删除知识库后图片会自动删除。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
The picture will be automatically deleted after the knowledge base is currently deleted.