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

当使用了api调用应用时如果传入了system参数会导致知识库失效 #1848

Closed
6 of 7 tasks
Mgrsc opened this issue Jun 25, 2024 · 2 comments
Closed
6 of 7 tasks
Assignees
Labels
bug Something isn't working

Comments

@Mgrsc
Copy link

Mgrsc commented Jun 25, 2024

例行检查

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

你的版本

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

问题描述, 日志截图
只要带有system-prompt参数使用api请求应用,知识库失效不会进行知识库搜索
image

将system-prompt设置为空,知识库依然不会进行调用搜索
image

删除system-prompt恢复正常
image

复现步骤
带有系统提示词进行请求

预期结果
无论是否带有system-prompt都应该进行知识库的搜索返回

@Mgrsc Mgrsc added the bug Something isn't working label Jun 25, 2024
@c121914yu c121914yu self-assigned this Jun 27, 2024
@c121914yu
Copy link
Collaborator

c121914yu commented Jul 4, 2024

image image

未发现问题,检查你的中间过程是否有影响

@c121914yu
Copy link
Collaborator

o 我想我可能知道是什么问题,应该是问题优化导致的,多了 system 后,历史记录截取出现了问题,导致问题优化结果异常,搜不到内容。

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