-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
[Feature] 知识库文件上传时重名处理优化 #9737
Copy link
Copy link
Open
Labels
area:webuiThe bug / feature is about webui(dashboard) of astrbot.The bug / feature is about webui(dashboard) of astrbot.enhancementNew feature or requestNew feature or requestfeature:knowledge-baseThe bug / feature is about knowledge baseThe bug / feature is about knowledge base
Description
Activity
Metadata
Metadata
Assignees
Labels
area:webuiThe bug / feature is about webui(dashboard) of astrbot.The bug / feature is about webui(dashboard) of astrbot.enhancementNew feature or requestNew feature or requestfeature:knowledge-baseThe bug / feature is about knowledge baseThe bug / feature is about knowledge base
功能描述
背景与现状
当前在知识库中上传数据文件时,若存在同名文件,系统未提供交互提示,用户需要手动逐一查找并删除旧文件后再上传,操作路径冗长。
痛点
当批量更新知识库文件时(例如一次性替换数十个文件),逐一核对、删除重名文件不仅耗时,且容易遗漏或误删,严重影响更新效率。
使用场景
在文件上传流程中增加智能重名检测机制,当检测到重名文件时,弹出清晰的操作选择对话框,提供以下选项:
覆盖:用新文件替换旧文件,保留原有文件元数据(如上传时间、关联关系等)。
重命名:自动为新文件生成唯一名称(如添加时间戳或序号),或允许用户手动修改名称后上传。
跳过:保留旧文件,不上传该重名文件(可多选批量操作)。
此外,建议支持“全部覆盖”或“全部重命名”的批量操作按钮,避免逐一确认,大幅提升批量更新场景下的工作效率。
此优化将显著改善知识库维护体验,尤其在频繁迭代的场景下,减少重复劳动,降低出错风险。期待评估与采纳,谢谢!
检查清单