[Bug]: 知识库放了两个文件,其中一个是有无人机内容的,但提问时一直说库里没有无人机的部分
相关组件
文档解析服务
Bug 描述
知识库放了两个文件,其中一个是有无人机内容的,但提问时一直说库里没有无人机的部分。
我接的是deepseek r1:14b,本地部署。
期望行为
应该要把关于无人机的部分指出来。
其实我是放了一个招标文件进去,然后让它根据技术评分标准给东西我,结果给不出。然后我说把技术评分标准找出来,找不到。后来我干脆直接点开,看到有无人机的字眼,叫他把无人机相关的内容帮我找出来,结果找不到。应该要找到才对。
相关日志
操作系统
Ubuntu24.04
确认事项
- [x] 我已经搜索了现有的 issues,确认这是一个新问题
应该是默认创建的会话rerank_threshold过大,我通过api创建了会话解决了这个问题
{
"knowledge_base_id": "a7e40405-9b84-48ff-8ed1-afcdb606fb10",
"session_strategy": {
"max_rounds": 5,
"enable_rewrite": true,
"fallback_strategy": "FIXED_RESPONSE",
"fallback_response": "对不起,我无法回答这个问题",
"embedding_top_k": 10,
"keyword_threshold": 0.5,
"vector_threshold": 0.7,
"rerank_model_id": "b3ba18e6-ce2e-4a9e-a0c7-7381e88376e6",
"rerank_top_k": 5,
"rerank_threshold": 0.35,
"summary_model_id": "8d9d2169-ef8b-46e5-b090-3d39210b4d45",
"summary_parameters": {
"max_tokens": 0,
"repeat_penalty": 1,
"top_k": 0,
"top_p": 0,
"frequency_penalty": 0,
"presence_penalty": 0,
"prompt": "",
"context_template": "",
"no_match_prefix": "<think>\n</think>\nNO_MATCH",
"temperature": 0.3,
"seed": 0,
"max_completion_tokens": 2048
},
"no_match_prefix": "<think>\n</think>\nNO_MATCH"
}
}
可以试试调节参数解决
咨询一下,您用的是默认的docreader吗? 我这边默认生成一直是unhealthy状态
应该是默认创建的会话rerank_threshold过大,我通过api创建了会话解决了这个问题
{ "knowledge_base_id": "a7e40405-9b84-48ff-8ed1-afcdb606fb10", "session_strategy": { "max_rounds": 5, "enable_rewrite": true, "fallback_strategy": "FIXED_RESPONSE", "fallback_response": "对不起,我无法回答这个问题", "embedding_top_k": 10, "keyword_threshold": 0.5, "vector_threshold": 0.7, "rerank_model_id": "b3ba18e6-ce2e-4a9e-a0c7-7381e88376e6", "rerank_top_k": 5, "rerank_threshold": 0.35, "summary_model_id": "8d9d2169-ef8b-46e5-b090-3d39210b4d45", "summary_parameters": { "max_tokens": 0, "repeat_penalty": 1, "top_k": 0, "top_p": 0, "frequency_penalty": 0, "presence_penalty": 0, "prompt": "", "context_template": "", "no_match_prefix": "
\n \nNO_MATCH", "temperature": 0.3, "seed": 0, "max_completion_tokens": 2048 }, "no_match_prefix": "\n \nNO_MATCH" } } 可以试试调节参数解决
您好,我通过聊天接口调用老是报500的错误,你是按照官方文档中的聊天接口方式调用的吗?
应该是默认创建的会话rerank_threshold过大,我通过api创建了会话解决了这个问题 { "knowledge_base_id": "a7e40405-9b84-48ff-8ed1-afcdb606fb10", "session_strategy": { "max_rounds": 5, "enable_rewrite": true, "fallback_strategy": "FIXED_RESPONSE", "fallback_response": "对不起,我无法回答这个问题", "embedding_top_k": 10, "keyword_threshold": 0.5, "vector_threshold": 0.7, "rerank_model_id": "b3ba18e6-ce2e-4a9e-a0c7-7381e88376e6", "rerank_top_k": 5, "rerank_threshold": 0.35, "summary_model_id": "8d9d2169-ef8b-46e5-b090-3d39210b4d45", "summary_parameters": { "max_tokens": 0, "repeat_penalty": 1, "top_k": 0, "top_p": 0, "frequency_penalty": 0, "presence_penalty": 0, "prompt": "", "context_template": "", "no_match_prefix": "\n\nNO_MATCH", "temperature": 0.3, "seed": 0, "max_completion_tokens": 2048 }, "no_match_prefix": "\n\nNO_MATCH" } } 可以试试调节参数解决
您好,我通过聊天接口调用老是报500的错误,你是按照官方文档中的聊天接口方式调用的吗?
我是按照官方文档调用API的,可以检查一下知识库和模型ID是否正确
应该是默认创建的会话rerank_threshold过大,我通过api创建了会话解决了这个问题 { "knowledge_base_id": "a7e40405-9b84-48ff-8ed1-afcdb606fb10", "session_strategy": { "max_rounds": 5, "enable_rewrite": true, "fallback_strategy": "FIXED_RESPONSE", "fallback_response": "对不起,我无法回答这个问题", "embedding_top_k": 10, "keyword_threshold": 0.5, "vector_threshold": 0.7, "rerank_model_id": "b3ba18e6-ce2e-4a9e-a0c7-7381e88376e6", "rerank_top_k": 5, "rerank_threshold": 0.35, "summary_model_id": "8d9d2169-ef8b-46e5-b090-3d39210b4d45", "summary_parameters": { "max_tokens": 0, "repeat_penalty": 1, "top_k": 0, "top_p": 0, "frequency_penalty": 0, "presence_penalty": 0, "prompt": "", "context_template": "", "no_match_prefix": "\n\nNO_MATCH", "temperature": 0.3, "seed": 0, "max_completion_tokens": 2048 }, "no_match_prefix": "\n\nNO_MATCH" } } 可以试试调节参数解决
您好,我通过聊天接口调用老是报500的错误,你是按照官方文档中的聊天接口方式调用的吗?
我是按照官方文档调用API的,可以检查一下知识库和模型ID是否正确
我是先用他的UI创建的知识库,再通过接口查询库创建会话的,因为UI版本我遇到了跟你一样的问题,他的搜索再多个文档时搜不出来,参考你的方案我尝试用接口调发现总是报500
应该是默认创建的会话rerank_threshold过大,我通过api创建了会话解决了这个问题 { "knowledge_base_id": "a7e40405-9b84-48ff-8ed1-afcdb606fb10", "session_strategy": { "max_rounds": 5, "enable_rewrite": true, "fallback_strategy": "FIXED_RESPONSE", "fallback_response": "对不起,我无法回答这个问题", "embedding_top_k": 10, "keyword_threshold": 0.5, "vector_threshold": 0.7, "rerank_model_id": "b3ba18e6-ce2e-4a9e-a0c7-7381e88376e6", "rerank_top_k": 5, "rerank_threshold": 0.35, "summary_model_id": "8d9d2169-ef8b-46e5-b090-3d39210b4d45", "summary_parameters": { "max_tokens": 0, "repeat_penalty": 1, "top_k": 0, "top_p": 0, "frequency_penalty": 0, "presence_penalty": 0, "prompt": "", "context_template": "", "no_match_prefix": "\n\nNO_MATCH", "temperature": 0.3, "seed": 0, "max_completion_tokens": 2048 }, "no_match_prefix": "\n\nNO_MATCH" } } 可以试试调节参数解决
您好,我通过聊天接口调用老是报500的错误,你是按照官方文档中的聊天接口方式调用的吗?
我是按照官方文档调用API的,可以检查一下知识库和模型ID是否正确
我使用这个接口调的会话,没调用起来
应该是默认创建的会话rerank_threshold过大,我通过api创建了会话解决了这个问题 { "knowledge_base_id": "a7e40405-9b84-48ff-8ed1-afcdb606fb10", "session_strategy": { "max_rounds": 5, "enable_rewrite": true, "fallback_strategy": "FIXED_RESPONSE", "fallback_response": "对不起,我无法回答这个问题", "embedding_top_k": 10, "keyword_threshold": 0.5, "vector_threshold": 0.7, "rerank_model_id": "b3ba18e6-ce2e-4a9e-a0c7-7381e88376e6", "rerank_top_k": 5, "rerank_threshold": 0.35, "summary_model_id": "8d9d2169-ef8b-46e5-b090-3d39210b4d45", "summary_parameters": { "max_tokens": 0, "repeat_penalty": 1, "top_k": 0, "top_p": 0, "frequency_penalty": 0, "presence_penalty": 0, "prompt": "", "context_template": "", "no_match_prefix": "\n\nNO_MATCH", "temperature": 0.3, "seed": 0, "max_completion_tokens": 2048 }, "no_match_prefix": "\n\nNO_MATCH" } } 可以试试调节参数解决
您好,我通过聊天接口调用老是报500的错误,你是按照官方文档中的聊天接口方式调用的吗?
我是按照官方文档调用API的,可以检查一下知识库和模型ID是否正确
我使用这个接口调的会话,没调用起来
我使用的是knowledge-chat这个API,我这里改了端口。我测试了一下还是可以跑通的。
应该是默认创建的会话rerank_threshold过大,我通过api创建了会话解决了这个问题 { "knowledge_base_id": "a7e40405-9b84-48ff-8ed1-afcdb606fb10", "session_strategy": { "max_rounds": 5, "enable_rewrite": true, "fallback_strategy": "FIXED_RESPONSE", "fallback_response": "对不起,我无法回答这个问题", "embedding_top_k": 10, "keyword_threshold": 0.5, "vector_threshold": 0.7, "rerank_model_id": "b3ba18e6-ce2e-4a9e-a0c7-7381e88376e6", "rerank_top_k": 5, "rerank_threshold": 0.35, "summary_model_id": "8d9d2169-ef8b-46e5-b090-3d39210b4d45", "summary_parameters": { "max_tokens": 0, "repeat_penalty": 1, "top_k": 0, "top_p": 0, "frequency_penalty": 0, "presence_penalty": 0, "prompt": "", "context_template": "", "no_match_prefix": "\n\nNO_MATCH", "temperature": 0.3, "seed": 0, "max_completion_tokens": 2048 }, "no_match_prefix": "\n\nNO_MATCH" } } 可以试试调节参数解决
您好,我通过聊天接口调用老是报500的错误,你是按照官方文档中的聊天接口方式调用的吗?
我是按照官方文档调用API的,可以检查一下知识库和模型ID是否正确
我使用这个接口调的会话,没调用起来
我使用的是knowledge-chat这个API,我这里改了端口。我测试了一下还是可以跑通的。
![]()
好的,感谢,我周一上班了再试一下
我使用这个接口调的会话,没调用起来