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

剔除应答结果 #1503

Open
5 tasks done
bincooo opened this issue May 16, 2024 · 3 comments
Open
5 tasks done

剔除应答结果 #1503

bincooo opened this issue May 16, 2024 · 3 comments
Assignees
Labels
feature New feature or request

Comments

@bincooo
Copy link

bincooo commented May 16, 2024

例行检查

  • 我已确认目前没有类似 features
  • 我已确认我已升级到最新版本
  • 我已完整查看过项目 README,已确定现有版本无法满足需求
  • 我理解并愿意跟进此 features,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 features 可能会被无视或直接关闭

功能描述
当用户发送了ai不想回答的提问时,可否本次回复不加入到上下文中?
比如用户的提问存在负向内容,ai不报错但返回警告。这些算作无效应答

应用场景

相关示例

@lijiajun1997
Copy link

确实有遇到类似的问题,建议通过提示词解决。
在提示词里加上,“对于上下文你要关注的是结合用户之前的对话去理解,但不要因为上文中你无法回答的问题干扰你本次回答”之类。

@bincooo
Copy link
Author

bincooo commented May 17, 2024

确实有遇到类似的问题,建议通过提示词解决。 在提示词里加上,“对于上下文你要关注的是结合用户之前的对话去理解,但不要因为上文中你无法回答的问题干扰你本次回答”之类。

这样就比较累赘了,还消耗tokens。这一轮对话对后续的对话其实是毫无意义的

@c121914yu
Copy link
Collaborator

做个feature~
这样就是在保存记录时候感觉会比较困难

@c121914yu c121914yu self-assigned this May 18, 2024
@c121914yu c121914yu added the feature New feature or request label May 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants