AstrBot icon indicating copy to clipboard operation
AstrBot copied to clipboard

[Feature]所有检索到的知识库内容相关度均低于阈值 0.5,不进行增强。如何能大于0.5

Open bbgouzi123 opened this issue 1 year ago • 2 comments

描述

[15:34:39] [Core] [INFO] [vector_store.astrbot_faiss_store:535]: Faiss 集合 't4' 搜索完成。查询文本: '你们的价格是多少...',返回 3 个结果。 [15:34:39] [Core] [INFO] [core.llm_enhancer:142]: 所有检索到的知识库内容相关度均低于阈值 0.5,不进行增强。

使用场景

No response

你愿意提交PR吗?

  • [ ] 是的, 我愿意提交PR!

Code of Conduct

  • [x] 我已阅读并同意遵守该项目的 行为准则。

bbgouzi123 avatar Jun 19 '25 07:06 bbgouzi123

使用更相关的数据库,rag检索原理就是计算相似度超过阈值的记录条目插入到prompt。如果认为知识库中存在的条目已经足够相关,请尝试更换使用更适合的嵌入模型。

RC-CHN avatar Jun 20 '25 01:06 RC-CHN

建议close

Sjshi763 avatar Feb 05 '26 13:02 Sjshi763