-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Labels
bug
Something isn't working
Comments
已经确认4.8的编排也无法实现这个功能 |
没看懂你想干啥 |
我希望走指定回复的判断条件是,1.知识库检索不到和2.上下文没有匹配到问题信息 |
上下文是一个对象,不是字符串 |
向量相关度0.45, 那不相关的也会被匹配上,基本不太可能在知识库判定为空了。你得在AI提示词里加,如过提供的与问题不相关,你应该拒绝回答并回复:“xxx” |
比较合理做法:让ai判断是否符合回答,输出一个特殊标记,然后用判断器进行判断。 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
例行检查
你的版本
问题描述, 日志截图
复现步骤
预期结果
希望在满足知识库搜索为空和上下文中没有提到的问题,才进行指定回复分支! 如果只指定搜索为空回复,便无法关联上下文
相关截图
The text was updated successfully, but these errors were encountered: