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

怎么完全按照知识库回答 #1423

Open
5 of 7 tasks
lxb0425 opened this issue May 9, 2024 · 6 comments
Open
5 of 7 tasks

怎么完全按照知识库回答 #1423

lxb0425 opened this issue May 9, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@lxb0425
Copy link

lxb0425 commented May 9, 2024

例行检查

  • 我已确认目前没有类似 issue
  • 我已完整查看过项目 README,以及项目文档
  • 我使用了自己的 key,并确认我的 key 是可正常使用的
  • 我理解并愿意跟进此 issue,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 issue 可能会被无视或直接关闭

你的版本

  • 公有云版本
  • 私有部署版本, 具体版本号:

问题描述, 日志截图
添加了知识库后,总是有一些模型的逻辑,怎么让完全按照知识库的内容响应呢
尝试使用编排 把AI对话换成了指定回复,回复的内容就有问题了
image

复现步骤

预期结果

相关截图

@lxb0425 lxb0425 added the bug Something isn't working label May 9, 2024
@lijiajun1997
Copy link

image
在这里设置,以及在提示词中强调一下。 这个内容需要AI加工,不能直接把知识库链接到指定回复。

@lxb0425
Copy link
Author

lxb0425 commented May 10, 2024

好的好的 再问下。回答是完全基于知识库吧 不会联想到知识库材料没有提供的内容吧?

@lijiajun1997
Copy link

好的好的 再问下。回答是完全基于知识库吧 不会联想到知识库材料没有提供的内容吧?

通过提示词可以强调

@lxb0425
Copy link
Author

lxb0425 commented May 10, 2024

额 这也行吗 这给客户用的 万一问到内容 回答到知识库以外的 那不坑惨了 /捂脸

@lijiajun1997
Copy link

额 这也行吗 这给客户用的 万一问到内容 回答到知识库以外的 那不坑惨了 /捂脸

提示词里可以限制“如果问到的问题不在提供的知识里,你应该拒绝回答”

@lxb0425
Copy link
Author

lxb0425 commented May 10, 2024

嗯额 也可以通过知识库搜索结果为空走指定回复输出固定回复的内容吧

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