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

知识库支持自动更新 #231

Open
liutianyi0801 opened this issue Feb 27, 2024 · 5 comments
Open

知识库支持自动更新 #231

liutianyi0801 opened this issue Feb 27, 2024 · 5 comments

Comments

@liutianyi0801
Copy link
Collaborator

🥰 需求描述 | Feature Description

当关联的数据集文件数据更新时,知识库也需要同步进行更新。

🧐 解决方案 | Proposed Solution

📝 补充信息 | Additional Information

优先级:P0

@yunti-bot
Copy link
Collaborator

👀 @liutianyi0801
Thank you for raising an issue. We will investigate into the matter and get back to you as soon as possible.
Please make sure you have given us as much context as possible.
非常感谢您提交 issue。我们会尽快调查此事,并尽快回复您。 请确保您已经提供了尽可能多的背景信息。

@bjwswang
Copy link
Collaborator

@liutianyi0801 这个不可控性太强。有的知识库是不需要同步更新的。这里正在给知识库的文件增加version,如发现文件有新版本后,可以让用户选择更新版本并触发知识库更新。

因此:

  1. 后端返回知识库文件列表时,会增加一个 latestversion字段,用于判断该文件是否有新版本
  2. 如果有新版本,则允许用户直接更新文件版本。

@liutianyi0801
Copy link
Collaborator Author

其实应该考虑什么情况下用户会编辑 csv ,大概率就是想更新 QA,更新知识库。
所以我们可以在更新 csv 的时候给一个提示,提示他更新文件后知识库会更新,会影响知识库。

1、增加文件版本没有问题,可以支持用户回滚
2、增加版本也可以进行版本比对

不过增加版本优先级不高。

@bjwswang
Copy link
Collaborator

其实应该考虑什么情况下用户会编辑 csv ,大概率就是想更新 QA,更新知识库。 所以我们可以在更新 csv 的时候给一个提示,提示他更新文件后知识库会更新,会影响知识库。

1、增加文件版本没有问题,可以支持用户回滚 2、增加版本也可以进行版本比对

不过增加版本优先级不高。

编辑CSV到知识库如果完全自动,是不可控的。 至少需要让用户自己决定要不要同步更新所有知识库

@liutianyi0801
Copy link
Collaborator Author

可以,编辑完之后可以给一个操作,是否同步更新知识库

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants