Langchain-Chatchat v0.2.9
重要提示
Langchain-Chatchat v0.2.9 版本中修改了configs
中配置项,建议所有用户按照 Wiki 的开发部署
中的相关描述重新完成项目中的配置文件生成。开发部署过程遇到问题请先到 Github Wiki / issues 中搜索。
此外,v0.2.9 版本中知识库相关信息的数据库表发生了变化,如果继续使用之前版本的配置,可使用 python init_database.py --create-tables
仅更新数据库表,不重建知识库。
本次更新中依赖 Python 包与其版本发生了大量更新,请使用pip install -r requirements.txt
进行更新。
新增功能
- 文件对话和知识库对话 API 接口实现全异步操作,防止阻塞 by @liunux4odoo in #2256
- 更新默认模型下载链接 by @YQisme in #2259
- OCR 支持 GPU 加速(需要手动安装 rapidocr_paddle[gpu]);知识库支持 MHTML 和 Evernote 文件。 by @liunux4odoo in #2265
- 使用Reranker模型对召回语句进行重排 by @hzg0601 in #2435
- 知识库管理界面支持查看、编辑、删除向量库文档 by @liunux4odoo in #2471
问题修复
- 修改 duckduckgo 依赖错误 by @zRzRzRzRzRzRzR @hzg0601 in #2251 and #2252
- 修复Azure 不设置Max token的bug by @zRzRzRzRzRzRzR in #2254
- fix: prompt template name error in file_chat by @liunux4odoo in #2366
- 优化EventSource回包 by @lookou in #1200
- fix: 文档错误 by @jaluik in #2384
- 更新 self.dims_length 赋值错误 by @xldistance in #2380
- 修复knowledge_base_chat_iterator 传参错误 by @xldistance in #2386
- fixed 迭代器参数传递错误,知识库问答报错TypeError: unhashable type: 'list' by @Astlvk in #2383
- fix:使用在线embedding模型时 报错 There is no current event loop in thread 'Any… by @Funkeke in #2393
- fix Yi-34b model config error(close #2491) by @liunux4odoo in #2492
- remove /chat/fastchat API endpoint by @liunux4odoo in #2506
新晋贡献者
- @YQisme made their first contribution in #2259
- @lookou made their first contribution in #1200
- @jaluik made their first contribution in #2384
- @xldistance made their first contribution in #2380
- @Astlvk made their first contribution in #2383
- @Funkeke made their first contribution in #2393
Full Changelog: v0.2.8...v0.2.9