v0.2.8
版本发布时间: 2023-12-01 22:13:38
chatchat-space/Langchain-Chatchat最新发布版本:v0.3.1(2024-07-12 23:23:05)
重要提示
Langchain-Chatchat v0.2.8 版本中修改了configs
中配置项,建议所有用户按照 Wiki 的开发部署
中的相关描述重新完成项目中的配置文件生成。开发部署过程遇到问题请先到 Github Wiki / issues 中搜索。
此外,v0.2.8 版本中知识库相关信息的数据库表发生了变化,且默认 embedding 模型修改为bge-large-zh
,如保持默认设置,请按需重建知识库。如果继续使用之前版本的配置,可使用 python init_database.py --create-tables
仅更新数据库表,不重建知识库。
本次更新中依赖 Python 包与其版本发生了大量更新,请使用pip install -r requirements.txt
进行更新。
新增功能
- 添加文件对话模式 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2071
- 知识库支持 .jsonl, .epub, .xlsx, .xlsd, .ipynb, .odt, .py, .srt, .toml, .doc, .ppt 文件 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2079
- 支持昆仑万维天工大模型 by @nathubs in https://github.com/chatchat-space/Langchain-Chatchat/pull/2166
- 完善对 ChatGLM3-6B 的支持 by @zRzRzRzRzRzRzR in https://github.com/chatchat-space/Langchain-Chatchat/pull/2021 and https://github.com/chatchat-space/Langchain-Chatchat/pull/2058
- 增加聊天记录在数据库中的存储 by @qiankunli in https://github.com/chatchat-space/Langchain-Chatchat/pull/2046
- 完善 WebUI 模型列表中对在线模型和本地模型的支持 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2060
- 支持软连接的知识库 by @zRzRzRzRzRzRzR in https://github.com/chatchat-space/Langchain-Chatchat/pull/2167
- 给 ApiModelWorker 添加 logger 成员变量,API请求出错时输出有意义的错误信息。 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2169
- 提供文档 summary_chunk ,支持单文件总结业务实现使用 MapReduceDocumentsChain 生成摘要 by @glide-the in https://github.com/chatchat-space/Langchain-Chatchat/pull/2175
- 单个知识库根据 doc_ids 摘要 by @glide-the in https://github.com/chatchat-space/Langchain-Chatchat/pull/2176
- 添加自定义命令用于管理多会话 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2229
- 优化知识库文档加载 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2091
- 统一在线模型异常报文、增加详细日志 by @glide-the in https://github.com/chatchat-space/Langchain-Chatchat/pull/2130
- 更新 ChatGLM3-6B agent的文档,提示词 by @zRzRzRzRzRzRzR in https://github.com/chatchat-space/Langchain-Chatchat/pull/2041
- 更新 requirements by @liunux4odoo @hzg0601 @zRzRzRzRzRzRzR @imClumsyPanda in https://github.com/chatchat-space/Langchain-Chatchat/pull/2033 , https://github.com/chatchat-space/Langchain-Chatchat/pull/2170 , https://github.com/chatchat-space/Langchain-Chatchat/pull/2213 and https://github.com/chatchat-space/Langchain-Chatchat/pull/2246
- 更新 README.md by @VignetteApril @weartist in https://github.com/chatchat-space/Langchain-Chatchat/pull/2034 and https://github.com/chatchat-space/Langchain-Chatchat/pull/2049
- 更新 config 模版 by @hzg0601 @zRzRzRzRzRzRzR @imClumsyPanda in https://github.com/chatchat-space/Langchain-Chatchat/pull/2110 and https://github.com/chatchat-space/Langchain-Chatchat/pull/2171
- 数据库和向量库中文档 metadata["source"] 改为相对路径,便于向量库迁移 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2153
问题修复
- 修复:知识库json文件的中文被转为 unicode 码,导致无法匹配 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2128
- 将 MiniMax 和 千帆 在线 Embedding 改为 10 个文本一批,防止接口数量限制 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2161
- 修复 startup.py by @hzg0601 in https://github.com/chatchat-space/Langchain-Chatchat/pull/2162 and https://github.com/chatchat-space/Langchain-Chatchat/pull/2173
- bug 修复和提示词修改 by @zRzRzRzRzRzRzR in https://github.com/chatchat-space/Langchain-Chatchat/pull/2230
- 一些细节更新 by @zRzRzRzRzRzRzR in https://github.com/chatchat-space/Langchain-Chatchat/pull/2235
- 修复: MiniMax 和千帆在线 embedding 模型分批请求的 bug by @alanlaye617 in https://github.com/chatchat-space/Langchain-Chatchat/pull/2208
- 修复: chat 接口默认使用 memory 获取 10 条历史消息,导致最终拼接的 prompt 出错 by @liunux4odoo in https://github.com/chatchat-space/Langchain-Chatchat/pull/2247
新晋贡献者
- @VignetteApril made their first contribution in https://github.com/chatchat-space/Langchain-Chatchat/pull/2034
- @weartist made their first contribution in https://github.com/chatchat-space/Langchain-Chatchat/pull/2049
- @nathubs made their first contribution in https://github.com/chatchat-space/Langchain-Chatchat/pull/2166
- @alanlaye617 made their first contribution in https://github.com/chatchat-space/Langchain-Chatchat/pull/2208
Full Changelog: https://github.com/chatchat-space/Langchain-Chatchat/compare/v0.2.7...v0.2.8