-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
feat: 添加知识库匹配度阈值 #1634
Merged
Merged
feat: 添加知识库匹配度阈值 #1634
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
是不是也需要在选择知识库的时候过滤掉无关内容,提示知识库没有匹配到内容 |
我说的是聊天界面如果提问内容进行知识库查询,查询到符合阈值的数量为0,那么可以 toast 用户说没有检索到知识库内容 当没有检索到知识库内容的时候就不走知识库的逻辑了 这样阈值才真正发挥到了作用 |
OK |
知识库检索未空时走一般逻辑已实现 |
window.message.info |
DEFAULT_KNOWLEDGE_THRESHOLD 如果默认不设置可能会更好一些,因为有些 0.5 分的数据可能是正确的 所以建议默认不设置这个值,除非用户手动输入了这个(这代表他们想清楚了,而不是胡乱设置 把设置的行为交给用户去操作,出现问题他们自己清楚了 |
差不多了,先有后优 |
This was
linked to
issues
Feb 15, 2025
kangfenmao
approved these changes
Feb 16, 2025
duanyongcheng
pushed a commit
that referenced
this pull request
Feb 16, 2025
* feat: 添加知识库匹配度阈值 * fix: 增加问答时知识库阈值 * feat: 当知识库未检索到数据时使用通用对话逻辑 * fix: add toast
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
feat #1617
默认0.6有2个搜索结果

修改为0.7仅显示1个

设置界面
