[Bug] Click the change answer button and will not hit the knowledge base
Contact Information
No response
MaxKB Version
v1.10.2-lts
Problem Description
点击换个答案按钮就会无法命中知识库,如果是在输入相同问题没有出现这样的情况。
也就是说请求包含 re_chat: true 会触发该问题。
我了解到:【换个答案】该操作会换一批引用分段,生成提示词发送给模型,让模型重新回答。
Steps to Reproduce
问题:怎么办理转学? 多次点击【换个答案】,就会出现无法命中知识库,指定回复内容。
The expected correct result
No response
Related log output
Additional Information
No response
感谢反馈,我们后续验证一下
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Thanks for the feedback, let's verify it later
你好,你描述的问题我们无法复现,测试环境中这个功能是正常,请提供更加详细的场景信息。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Hello, we cannot reproduce the problem you described. This function is normal in the test environment. Please provide more detailed scenario information.
你好,你描述的问题我们无法复现,测试环境中这个功能是正常,请提供更加详细的场景信息。
问题:出生一件事如何办理? 应用:test_mk 知识库:高效办成一件事 复现步骤:导入附件中的知识库,上传文档:QA问答对,导入应用,提问,点击换个答案。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Hello, we cannot reproduce the problem you described. This function is normal in the test environment. Please provide more detailed scenario information.
Question: How to handle something when you are born? Application: test_mk Knowledge Base: Get One Things Efficiently Reproduction steps: Import the knowledge base in the attachment, upload the document: QA Q&A, import the application, ask questions, and click to change the answer.
您好,我们已经使用您提供的知识库和应用对问题做了复现,这个现象是正常的。因为按照你应用的知识库检索相似度设置,在第一次检索提问检索时只检索到了一个分段,而换个答案的逻辑是默认你对这个检索结果不满意,所以会换个分段进行回答,但是只有一个分段符合检索条件但被定义为不满意分段,所以就不引用分段,直接用上下文作为知识进行回复。您可以将知识库检索的相似度调低,只要有多个分段被检索到,在换个答案的时候就会有引用分段。
Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑🤝🧑👫🧑🏿🤝🧑🏻👩🏾🤝👨🏿👬🏿
Hello, we have used the knowledge base and application you provide to reproduce the problem, and this phenomenon is normal. Because according to the similarity of the search you applied, only one segment was retrieved during the first search question search, and the logic of changing the answer is that you are not satisfied with the search result, so you will change the segment to answer, but only one segment meets the search conditions but is defined as an unsatisfactory segment, so you do not quote the segment and directly use the context as knowledge to reply. You can lower the similarity of the knowledge base search. As long as multiple segments are retrieved, there will be reference segments when changing the answer.