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

如何只回答知识库里面的内容 #1

Open
bleakie opened this issue Jul 17, 2023 · 5 comments
Open

如何只回答知识库里面的内容 #1

bleakie opened this issue Jul 17, 2023 · 5 comments

Comments

@bleakie
Copy link

bleakie commented Jul 17, 2023

prompt设置了只让他回答知识库里面的内容,但是仍然会乱说,怎么办

@iMagist486
Copy link
Owner

我也遇到这个问题,个人感觉这个问题没办法彻底解决,毕竟模型是不可控的,只能多尝试几种prompt,微调模型尽量改善吧。有什么好方法也给我分享下。

@Mingxiangyu
Copy link

我也遇到这个问题,个人感觉这个问题没办法彻底解决,毕竟模型是不可控的,只能多尝试几种prompt,微调模型尽量改善吧。有什么好方法也给我分享下。

在langchain-clm中学到一个,如果在知识库中检索时没检索到东西,可以不用调用llm,直接返回响应,告诉界面没有检索到结果

@iMagist486
Copy link
Owner

我也遇到这个问题,个人感觉这个问题没办法彻底解决,毕竟模型是不可控的,只能多尝试几种prompt,微调模型尽量改善吧。有什么好方法也给我分享下。

在langchain-clm中学到一个,如果在知识库中检索时没检索到东西,可以不用调用llm,直接返回响应,告诉界面没有检索到结果

这种只能解决没有相关内容的情况,但还存在检索到相关内容,但还是回答出了给定内容之外的东西

@Mingxiangyu
Copy link

我也遇到这个问题,个人感觉这个问题没办法彻底解决,毕竟模型是不可控的,只能多尝试几种prompt,微调模型尽量改善吧。有什么好方法也给我分享下。

在langchain-clm中学到一个,如果在知识库中检索时没检索到东西,可以不用调用llm,直接返回响应,告诉界面没有检索到结果

这种只能解决没有相关内容的情况,但还存在检索到相关内容,但还是回答出了给定内容之外的东西

嗯嗯,确实是,llm的模型幻觉这个确实不可控,只能通过调节温度来限制一些了

@abbhay
Copy link

abbhay commented Oct 13, 2023

老哥,你这个有没有对应的学习视频啊,求分享

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

No branches or pull requests

4 participants