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

[FEATURE] 【应用】提示词支持获取时间的变量 #191

Open
rty813 opened this issue Apr 21, 2024 · 4 comments
Open

[FEATURE] 【应用】提示词支持获取时间的变量 #191

rty813 opened this issue Apr 21, 2024 · 4 comments
Assignees

Comments

@rty813
Copy link

rty813 commented Apr 21, 2024

MaxKB 版本

v1.0.4 (build at 2024-04-19T16:59, commit: 7c00122)

请描述您的需求或者改进建议

希望web知识库支持定时同步功能。例如每天上午九点更新。

请描述你建议的实现方案

附加信息

No response

@baixin513
Copy link
Contributor

感谢反馈,同步会先删除文档再重新获取,若分段维护了关联问题同步时会取消关联关系,操作需要谨慎,不建议开定时任务同步。

@rty813
Copy link
Author

rty813 commented Apr 22, 2024

感谢反馈,同步会先删除文档再重新获取,若分段维护了关联问题同步时会取消关联关系,操作需要谨慎,不建议开定时任务同步。

我有个需求是需要让应用知道当前时间,所以就用知识库添加了一个获取时间API。但如果不能自动同步,这个就没有作用了。或者可以仿照dify的“添加工具”功能:
image

@baixin513
Copy link
Contributor

如果是需要让应用知道当前时间,那这个需求应该是在提示词中加个获取时间的变量就能解决吧。

@rty813
Copy link
Author

rty813 commented Apr 22, 2024

如果是需要让应用知道当前时间,那这个需求应该是在提示词中加个获取时间的变量就能解决吧。

是的,这样也可以。

@baixin513 baixin513 changed the title [FEATURE] Web知识库支持定时同步功能 [FEATURE] 【应用】提示词支持获取时间的变量 Apr 22, 2024
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

2 participants