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

知识库设置权重优先引用 #1491

Open
1 of 2 tasks
XiangyuTang opened this issue May 15, 2024 · 3 comments
Open
1 of 2 tasks

知识库设置权重优先引用 #1491

XiangyuTang opened this issue May 15, 2024 · 3 comments
Assignees
Labels
feature New feature or request

Comments

@XiangyuTang
Copy link

例行检查

  • [ x] 我已确认目前没有类似 features
  • 我已确认我已升级到最新版本
  • [ x] 我已完整查看过项目 README,已确定现有版本无法满足需求
  • [ x] 我理解并愿意跟进此 features,协助测试和提供反馈
  • 我理解并认可上述内容,并理解项目维护者精力有限,不遵循规则的 features 可能会被无视或直接关闭

功能描述
新增知识库权重引用功能

应用场景
当知识库到后期内容量很大的时候,由于知识库存在更新时效性问题,后来的知识库可能跟之前传入的知识库有内容上的矛盾,但是如果以前的知识库跟新知识库发生冲突的内容很多,一条一条改以前的知识库的内容不太现实,希望对知识库进行权重引用,当对某个知识库相对其他知识库设置了更高的权重值时,模块会优先搜索并饮用这个知识库的内容。

相关示例

@lijiajun1997
Copy link

上传的时候给文件名加上时间,然后在引用的时候加上source,这样返回给AI的数据里就有了文件日期。
image

然后在提示词里强调如果有矛盾的信息,请用最新日期的文件
image

@c121914yu
Copy link
Collaborator

上传的时候给文件名加上时间,然后在引用的时候加上source,这样返回给AI的数据里就有了文件日期。
image

然后在提示词里强调如果有矛盾的信息,请用最新日期的文件
image

好方法。后续可以增加一个时间变量

@c121914yu c121914yu added the feature New feature or request label May 15, 2024
@c121914yu c121914yu self-assigned this May 15, 2024
@chung1912
Copy link

上传的时候给文件名加上时间,然后在引用的时候加上source,这样返回给AI的数据里就有了文件日期。
image
然后在提示词里强调如果有矛盾的信息,请用最新日期的文件
image

好方法。后续可以增加一个时间变量

这个配置界面怎么找不到?v4.8版本

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

4 participants