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

[BUG]知识库文档中若图片不存,前端渲染失败导致显示页面异常 #1336

Open
B14Lettingo opened this issue Oct 9, 2024 · 3 comments
Assignees
Milestone

Comments

@B14Lettingo
Copy link

B14Lettingo commented Oct 9, 2024

联系方式

1812951966@qq.com

MaxKB 版本

v1.6.1 (build at 2024-09-29T19:20, commit: 0bc093e6)

问题描述

在知识库中对新导入的文件中若存在.png格式的图片,但图片实际并不存在于MK数据库中时会导致输出对应分段时页面抽搐。

重现步骤

4008技术手册.md.xlsx
下载上述文档,并导入知识库中,使用MK内置向量模型进行向量化知识库文档。建立简单配置应用,使用豆包LLM(参数:温度0.45,tokens:4000),关联对应知识库,并设置对应参数为:无知识库引用时继续向大模型提问。完成配置后在右侧测试页面输入问题:" P.C.B. Lp 645 Position Sensor Membrane Pump - Description"。

期待的正确结果

页面显示无抽搐

相关日志输出

No response

附加信息

_20241009_142012.mp4
@B14Lettingo B14Lettingo changed the title [BUG]知识库文档中若图片不存,前段渲染失败导致显示页面异常 [BUG]知识库文档中若图片不存,前端渲染失败导致显示页面异常 Oct 9, 2024
@baixin513
Copy link
Contributor

感谢反馈,可以在AI回答时使用F12检查一下 模型返回的图片链接是否正确?

@B14Lettingo
Copy link
Author

B14Lettingo commented Oct 10, 2024

异常图片调用的URL:http://${IP}/ui/chat/481_image_0.png 在知识库文档分段中显示的内容:480_image_0.png
image
正常图片调用的URL:http://${IP}/api/application/chat_message/70a55454-86b5-11ef-a7ff-0242ac120004 在知识库文档分段中显示的内容:
image

@baixin513
Copy link
Contributor

好的,后续版本优化一下。

@baixin513 baixin513 added this to the v1.7.0 milestone Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants