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

[BUG] PromptSettings类中的提示词中有病句“你只要回复0 和 1 ,代表不需要使用工具。” #5085

Open
yangyousan123 opened this issue Nov 18, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@yangyousan123
Copy link

问题描述 / Problem Description
libs/chatchat-server/chatchat/settings.py中的PromptSettings类:

preprocess_model: dict = {
"default": (
"你只要回复0 和 1 ,代表不需要使用工具。以下几种问题不需要使用工具:\n"
"1. 需要联网查询的内容\n"
"2. 需要计算的内容\n"
"3. 需要查询实时性的内容\n"
"如果我的输入满足这几种情况,返回1。其他输入,请你回复0,你只要返回一个数字\n"
"这是我的问题:"
),
}
"""意图识别用模板"""

这里的“你只要回复0 和 1 ,代表不需要使用工具。”是个病句,是否应改为“你只要回复0 和 1 ,其中1代表不需要使用工具。”?

@yangyousan123 yangyousan123 added the bug Something isn't working label Nov 18, 2024
@yangyousan123
Copy link
Author

可能我的理解有误,可能”返回1“代表不需要使用工具的三种情况,”返回0“代表不需要使用工具的其他情况。

@suice07
Copy link

suice07 commented Nov 20, 2024

反正也没用到,自己改改好了

@yangyousan123
Copy link
Author

反正也没用到,自己改改好了

原来是这样,谢谢!

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

2 participants