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

指定回复后上下文就被截断 #1512

Closed
1 of 2 tasks
heart18z opened this issue May 16, 2024 · 7 comments
Closed
1 of 2 tasks

指定回复后上下文就被截断 #1512

heart18z opened this issue May 16, 2024 · 7 comments
Labels
bug Something isn't working

Comments

@heart18z
Copy link

例行检查

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

你的版本

  • 公有云版本
  • [ x] 私有部署版本, 具体版本号: 4.7.0

问题描述, 日志截图
image

复现步骤

预期结果
希望在满足知识库搜索为空和上下文中没有提到的问题,才进行指定回复分支! 如果只指定搜索为空回复,便无法关联上下文
相关截图
image

@heart18z heart18z added the bug Something isn't working label May 16, 2024
@heart18z
Copy link
Author

已经确认4.8的编排也无法实现这个功能

@heart18z
Copy link
Author

类似这种条件的判断
image

@c121914yu
Copy link
Collaborator

没看懂你想干啥

@heart18z
Copy link
Author

我希望走指定回复的判断条件是,1.知识库检索不到和2.上下文没有匹配到问题信息
目前的流程来看,似乎无法同时满足这两个条件

@c121914yu
Copy link
Collaborator

我希望走指定回复的判断条件是,1.知识库检索不到和2.上下文没有匹配到问题信息 目前的流程来看,似乎无法同时满足这两个条件

上下文是一个对象,不是字符串

@lijiajun1997
Copy link

向量相关度0.45, 那不相关的也会被匹配上,基本不太可能在知识库判定为空了。你得在AI提示词里加,如过提供的与问题不相关,你应该拒绝回答并回复:“xxx”

@c121914yu
Copy link
Collaborator

比较合理做法:让ai判断是否符合回答,输出一个特殊标记,然后用判断器进行判断。

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

3 participants