Langchain-Chatchat icon indicating copy to clipboard operation
Langchain-Chatchat copied to clipboard

是否可以增加向量召回的阈值设定,有些召回内容相关性太低,导致模型胡言乱语

Open cn-vhql opened this issue 1 year ago • 3 comments

如题

cn-vhql avatar Apr 20 '23 00:04 cn-vhql

目前有在研究实现方法,暂时还没搞定

qianglegend @.***>于2023年4月20日 周四08:53写道:

如题

— Reply to this email directly, view it on GitHub https://github.com/imClumsyPanda/langchain-ChatGLM/issues/140, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABLH5ESAHC3Q7UWM5523KN3XCCCG7ANCNFSM6AAAAAAXEZBU5A . You are receiving this because you are subscribed to this thread.Message ID: @.***>

imClumsyPanda avatar Apr 20 '23 01:04 imClumsyPanda

在最新版的v0.1.6中已经可以返回了,但是因为没有归一化,所以没有默认显示,输出方式可以参考cli_demo.py第40行注释的代码

下一步会增加归一化和阈值判断功能

imClumsyPanda avatar Apr 27 '23 04:04 imClumsyPanda

为啥不做归一化?

xupengrun avatar May 12 '23 15:05 xupengrun