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

想通过高级编排实现提问后先检索知识库,如果知识库没有检索到关键词再进行百度搜索 #1478

Closed
6 of 7 tasks
zhangshuo687686 opened this issue May 14, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@zhangshuo687686
Copy link

例行检查

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

你的版本

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

问题描述, 日志截图
我现在流程到“文本内容提取”这一步,在上一步“AI 对话”处理中,如果知识库没有问题的答案会返回类似“我不清楚xxx”等格式的内容,想据此判断发送HTTP 请求百度搜索获取问题的答案。能否给一些建议,我当前使用的版本中对“文本内容提取”模块的运行没有达到预期,能否给一些建议

复现步骤

预期结果

相关截图
目前构思的效果
12

文本内容提取运行结果如下
11

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

我感觉是在判断器这里配置不对,比如我提问知识库北京今天的天气? 知识库回答:对不起,我不能直接访问实时的天气数据。如果您需要查询某个具体地址的实时天气,建议您使用手机APP或者搜索引擎查询。 这种情况下在“判断器”中如何继续判断?
如果“判断器”无法判断,是不是需要通过“文本内容提取”打到让“判断器”能够进行判断

@c121914yu
Copy link
Collaborator

可以尝试直接调用ai对话,生成一些特殊的回答。
判断到特殊回答,则说明知识库不满足。

@c121914yu
Copy link
Collaborator

例如(我简单写了提示词,没有细调整。):
image
image

@zhangshuo687686
Copy link
Author

好的,多谢,我看了一下,我用的版本是2个月以前的版本,判断器跟跟最新版的使用不一样。我升级到最新版试一下

@zhangshuo687686
Copy link
Author

我参考了您的建议,在最新版的试了一下。“HTTP请求”模块报错“e.slice is not a function”

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