imClumsyPanda
8f4e62ad5b
Update README.md
2024-06-12 16:17:25 +08:00
imClumsyPanda
2123569598
Add files via upload
2024-06-12 16:16:48 +08:00
zR
3ecff4bce7
Merge pull request #3966 from yhfgyyf/glm-4-stream
...
修复glm-4 无法流式输出的bug
2024-06-08 16:34:58 +08:00
ChillWay
4cd8d0e97c
Update test_different_splitter.py ( #3887 )
...
fix path error
2024-05-29 22:11:28 +08:00
Selfuppen
200f9fb481
Update 大模型应用技术原理.md ( #3873 )
...
Fixed a spelling error:
juava -> java
2024-05-29 22:10:39 +08:00
imClumsyPanda
1ab62ad339
Update README.md
2024-05-29 17:46:06 +08:00
imClumsyPanda
7cb8b96ed5
Add files via upload
2024-05-29 17:45:45 +08:00
af su
b9827529aa
fix: incorrect variable usage in update_doc_by_ids method ( #4048 )
...
Co-authored-by: saf <saf@zjuici.com>
2024-05-20 14:44:02 +08:00
liunux4odoo
8ca9e8ff28
replace Path.is_relative_to to make py38 compatible ( #4029 )
2024-05-16 11:06:22 +08:00
liunux4odoo
ede538bfe2
update "path traversal bug in api /knowledge_base/download_doc( #4008 )… ( #4017 )
...
* Revert "path traversal bug in api /knowledge_base/download_doc(#4008 ) (#4009 )"
This reverts commit 2c146aff74bac427f0a4921971d8472097410bdf.
* Update utils.py
2024-05-14 18:48:55 +08:00
liunux4odoo
2c146aff74
path traversal bug in api /knowledge_base/download_doc( #4008 ) ( #4009 )
...
close #4008
2024-05-14 09:46:19 +08:00
imClumsyPanda
703d0f6aa7
Update README.md
2024-05-09 17:19:13 +08:00
imClumsyPanda
8e2515f768
Add files via upload
2024-05-09 17:18:50 +08:00
yhfgyyf
d9323ea3f6
修复glm-4 无法流式输出的bug
2024-05-08 15:05:00 +08:00
zR
24faba561b
Merge pull request #3203 from qqlww1987/master
...
百川调用示例
2024-05-01 16:49:50 +08:00
zR
cbc28d7296
Merge pull request #3912 from pearjelly/master
...
修复zhipu-api向量化失败问题
2024-05-01 16:49:24 +08:00
imClumsyPanda
f9beb142c8
Update README.md
2024-04-30 14:57:54 +08:00
imClumsyPanda
781b782f73
Add files via upload
2024-04-30 14:57:37 +08:00
hxb
160f0b8af4
Merge branch 'chatchat-space:master' into master
2024-04-28 16:15:31 +08:00
hxb
26672ffeda
feature:长文档循环处理texts时,增加重试极致,降低单片文档失败导致整个文档向量化失败的概率
2024-04-28 16:14:31 +08:00
hxb
0078cdc724
bugfix: 使用向量计算方式METRIC_INNER_PRODUCT时启用normalize_L2会导致向量化失败
2024-04-28 16:12:23 +08:00
An0nymous
9c0820c94a
更新火山方舟调用 ( #3564 )
...
* 更新火山方舟调用
2024-04-25 14:33:28 +08:00
imClumsyPanda
cf049511cf
Update README.md
2024-04-25 13:56:39 +08:00
imClumsyPanda
c52e89d92a
Add files via upload
2024-04-25 13:56:17 +08:00
做梦好啊
2c7feae7bb
Update README.md ( #3804 )
2024-04-18 20:51:40 +08:00
imClumsyPanda
52f2a2a046
Update requirements.txt
2024-04-18 11:36:48 +08:00
yuehua-s
9bf0612e3d
Feat/action update readme ( #3779 )
2024-04-17 09:59:54 +08:00
yuehua-s
7da7636abc
feat:support action update Readme ( #3773 )
2024-04-16 23:19:56 +08:00
imClumsyPanda
326a9652aa
Update README.md
2024-04-16 14:23:02 +08:00
imClumsyPanda
b6e1f208e9
Add files via upload
2024-04-16 14:22:41 +08:00
yuehua-s
4815a6c92e
fix:fix model_config claude-api ( #3760 )
...
Co-authored-by: yuehuazhang <yuehuazhang@tencent.com>
2024-04-16 09:56:11 +08:00
Art Jiang
448e79576c
Adding Claude 3 API support ( #3340 )
...
---------
Co-authored-by: Jiang, Fengyi <art.jiang@gatech.edu>
2024-04-16 08:32:48 +08:00
liunux4odoo
3902f6d235
Merge pull request #3574 from dengpeng777/master
...
support zhipu-api embedding
2024-04-16 07:10:24 +08:00
yuehua-s
72a6878287
Feat/update actions ( #3758 )
2024-04-16 06:35:20 +08:00
yuehua-s
5eb37ea2e3
Feat/git action ( #3745 )
2024-04-15 23:29:30 +08:00
saliven1970
f29ab1e67f
修复获取reranker_model_path出错的问题 ( #3458 )
2024-04-15 21:53:06 +08:00
Qinyu Luo
341ee9db44
Generate repository-level Chinese code documentation by RepoAgent. ( #3108 )
2024-04-15 21:51:13 +08:00
你的代码TT
2f2221ca47
Add document normalization in Chroma. ( #3640 )
2024-04-15 21:37:32 +08:00
allseeeeeee
6d128f24f0
fix: 以lite模式启动时仅加载了在线嵌入模型,未加载配置的默认嵌入模型,导致创建知识库时报错 'bge-large-zh-v1.5' is not in list. ( #3670 )
...
修复方式: 如果lite模式启动, 配置的默认嵌入模型也添加到列表
Co-authored-by: LuoJingtian <luojingtian@siiture.com>
2024-04-15 21:29:40 +08:00
imClumsyPanda
8721aad18d
Update README.md
2024-04-11 15:16:07 +08:00
imClumsyPanda
13377191e7
Add files via upload
2024-04-11 15:15:43 +08:00
yuehua-s
110b5694da
Feat/docker v0.2.10 ( #3664 )
...
* feat:update docker image to v0.2.10.
* feat:update docker image to v0.2.10.
---------
Co-authored-by: yuehuazhang <yuehuazhang@tencent.com>
2024-04-08 10:29:16 +08:00
jinke
da1c1a225c
add docker registries
2024-04-08 01:15:10 +08:00
jinke
5eb025d9dc
update docker aliyun mirror to 0.2.10
...
update docker aliyun mirror to 0.2.10
2024-04-08 00:30:40 +08:00
imClumsyPanda
6003d8dd83
Update README.md
2024-04-07 13:07:26 +08:00
imClumsyPanda
b0f5fb2d3e
Add files via upload
2024-04-07 13:07:00 +08:00
imClumsyPanda
6dd066ca72
Update README.md
2024-04-02 15:50:11 +08:00
imClumsyPanda
c0dafb95cc
Add files via upload
2024-04-02 15:49:55 +08:00
RoceoRobin
487235259e
Update README.md ( #3585 )
...
错别字
2024-04-01 13:17:02 +08:00
dengpeng777
a592b1cd3f
fix add default embed model
2024-03-30 10:00:55 +08:00
dengpeng777
6011bac07f
support zhipu-api embedding
2024-03-30 09:58:18 +08:00
imClumsyPanda
ae9f4d208e
Add files via upload
2024-03-29 21:53:01 +08:00
imClumsyPanda
78290d360f
Update README.md
2024-03-29 21:44:54 +08:00
imClumsyPanda
966c582a2a
Update README.md
2024-03-26 12:48:14 +08:00
imClumsyPanda
bfb76faadb
Add files via upload
2024-03-26 12:46:59 +08:00
imClumsyPanda
40263dd403
Update README.md
2024-03-22 14:38:30 +08:00
imClumsyPanda
825e4976ae
Add files via upload
2024-03-22 14:37:40 +08:00
iimm
253d4b9b9a
修复使用pgvector时get_doc_by_ids方法报错的bug及知识库文件删除后向量仍然存在的bug ( #3407 )
...
* 修复使用pgvector无法查询到document
* 修复使用pg/es向量库无法知识库删除文档后向量库并未删除对应记录的bug
2024-03-20 08:41:41 +08:00
BlizBearer
07b7c966ed
Dev fix csv loader ( #3404 )
...
* fix: csv loader only load one column
* csv data merge with col name
2024-03-20 08:40:22 +08:00
imClumsyPanda
d78b14721c
Update README.md
2024-03-19 13:04:40 +08:00
imClumsyPanda
5ad4d520dd
Add files via upload
2024-03-19 13:04:18 +08:00
imClumsyPanda
d879e86cab
Update README.md
2024-03-12 09:21:42 +08:00
imClumsyPanda
cd54eeb137
Add files via upload
2024-03-12 09:21:13 +08:00
imClumsyPanda
021d635af0
Update README.md
2024-03-06 20:20:51 +08:00
imClumsyPanda
f40d415f07
Add files via upload
2024-03-06 20:20:30 +08:00
qqlww1987
7198654611
Merge branch 'master' of https://github.com/qqlww1987/Langchain-Chatchat
2024-03-06 15:30:57 +08:00
qqlww1987
818f87b5e4
更新百川API示例
...
百川大模型API调用示例修改
2024-03-06 14:59:16 +08:00
qqlww1987
c6d91c3e3d
百川API示例处理
...
百川API调用示例
2024-03-06 14:14:06 +08:00
qqlww1987
5c74a28de9
Merge branch 'chatchat-space:master' into master
2024-03-06 14:11:57 +08:00
hollowdjj
e48f4a24c9
修复使用Milvus数据库时上传知识库文件报错的问题 ( #3155 )
...
milvus 返回的 Document.metadata 携带了 vector 信息,导致 API 接口序列化失败。
---------
Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
2024-03-06 08:46:46 +08:00
qqlww1987
279fe9c659
Merge pull request #1 from chatchat-space/master
...
百川API调用事例调整
2024-03-03 20:15:53 +08:00
imClumsyPanda
bab93690fc
Update README.md
2024-03-02 14:50:17 +08:00
imClumsyPanda
54bed50713
Add files via upload
2024-03-02 14:49:45 +08:00
imClumsyPanda
caf502d141
Update README.md
2024-02-28 09:57:20 +08:00
imClumsyPanda
76e82a9b8f
Add files via upload
2024-02-28 09:56:58 +08:00
imClumsyPanda
574ea4f4d5
Update README.md
2024-02-24 23:49:34 +08:00
imClumsyPanda
cf1c853b19
Add files via upload
2024-02-24 23:49:09 +08:00
imClumsyPanda
fb8fbe96e4
Update README.md
2024-02-21 11:51:52 +08:00
imClumsyPanda
7c89f88513
Add files via upload
2024-02-21 11:51:24 +08:00
imClumsyPanda
1fa714ee71
Update README.md
2024-02-19 14:56:49 +08:00
imClumsyPanda
b2fabe211b
Update README.md
2024-02-19 12:10:44 +08:00
imClumsyPanda
d5edb08b24
Add files via upload
2024-02-19 12:10:24 +08:00
ai松柏君
051c599bb5
requirements_webui.txt ( #2960 )
2024-02-07 10:21:42 +08:00
zR
cd13aee97d
Merge pull request #2958 from chatchat-space/dev
...
更新readme
2024-02-07 00:28:04 +08:00
zR
8146279bbe
Merge pull request #2957 from zRzRzRzRzRzRzR/dev
...
更新readme
2024-02-07 00:27:30 +08:00
zR
c49c6923a1
更新readme
2024-02-07 00:26:58 +08:00
zR
041e964b30
Merge pull request #2949 from criwits/dev
...
增加对 `.htm` 扩展名的显式支持,以解决 `.htm` 格式网页可被上传但不被入库的问题
2024-02-07 00:22:53 +08:00
imClumsyPanda
f75ae3ea5f
Update README.md
2024-02-06 19:51:54 +08:00
imClumsyPanda
0522a42ab7
Add files via upload
2024-02-06 19:51:33 +08:00
Hans WAN
5460b93ba2
增加对 .htm 扩展名的显式支持
2024-02-06 16:28:41 +08:00
zR
ab650253d1
Merge pull request #2946 from chatchat-space/dev
...
Dev
2024-02-06 13:52:55 +08:00
zR
670131c886
Merge pull request #2945 from zRzRzRzRzRzRzR/dev
...
更新zhipuai请求方式
2024-02-06 13:51:43 +08:00
zR
2756996125
更新zhipuai请求方式
2024-02-06 13:50:57 +08:00
zR
f04a2bfcc7
Merge pull request #2919 from fengyaojieTTT/bugfix/es-document-query
...
修复es 知识库查询bug (#2848 )
2024-02-06 12:25:56 +08:00
fengyaojie
9c5aa5bf2f
修复es 知识库查询bug ( #2848 )
2024-02-05 16:28:23 +08:00
fengyaojie
36956520ea
修复es 知识库查询bug ( #2848 )
2024-02-03 18:01:54 +08:00
imClumsyPanda
4f67f4a841
Update README.md
2024-02-01 10:00:14 +08:00
imClumsyPanda
e042a76f11
Add files via upload
2024-02-01 09:59:44 +08:00
zR
13628c5f9a
Merge pull request #2871 from chatchat-space/master
...
merege
2024-01-30 21:39:30 +08:00
zR
5afbae56fc
Merge pull request #2870 from chatchat-space/dev
...
更新星火大模型
2024-01-30 21:38:49 +08:00
zR
2504ea3393
Merge pull request #2869 from zRzRzRzRzRzRzR/dev
...
支持星火3.5模型
2024-01-30 21:37:55 +08:00
zR
07906751c1
支持星火3.5模型
2024-01-30 21:37:29 +08:00
zqt996
b7a249f46a
Merge pull request #2868 from zqt996/master
...
修复milvus相关bug
2024-01-30 21:33:18 +08:00
zqt
cbfbbe5e6b
修复milvus相关bug
2024-01-30 21:28:42 +08:00
imClumsyPanda
845adfbc0b
Update README.md
2024-01-30 16:51:03 +08:00
imClumsyPanda
53ff5040e2
Update README.md
2024-01-30 16:50:35 +08:00
imClumsyPanda
77914386b0
Update README.md
2024-01-30 16:50:07 +08:00
zR
03edc3e501
Merge pull request #2858 from chatchat-space/dev
...
修复部分0.2.10的问题
2024-01-30 14:28:55 +08:00
zR
3f70a0d18c
Merge pull request #2857 from zRzRzRzRzRzRzR/dev
...
autodl代号错误修复
2024-01-30 14:28:05 +08:00
zR
b0708c7a8d
Merge branch 'chatchat-space:dev' into dev
2024-01-30 14:27:36 +08:00
zR
887cf95db7
autodl代号错误
2024-01-30 14:27:09 +08:00
zR
b39b585867
Merge pull request #2856 from zRzRzRzRzRzRzR/dev
...
更新掉部分错误的依赖
2024-01-30 14:19:14 +08:00
zR
042a70c09a
更新了chromadb的打印的符号
2024-01-30 14:18:14 +08:00
zR
ffbfcd41f2
API前端丢失问题解决
2024-01-30 13:43:16 +08:00
zR
22ee1a0c97
Merge pull request #2816 from songpb/master
...
修复PDF旋转的BUG (Issues #2792 )
2024-01-30 13:01:24 +08:00
songpb
4157201c2c
Merge branch 'dev' into master
2024-01-30 12:42:28 +08:00
zR
6eab501baf
Merge pull request #2843 from zRzRzRzRzRzRzR/dev
...
更新文件
2024-01-29 21:18:06 +08:00
zR
268bb68122
更新文件
2024-01-29 21:17:10 +08:00
zR
4f5824e964
Merge pull request #2820 from showmecodett/feat-chromadb
...
支持Chroma向量数据库
2024-01-29 20:59:15 +08:00
tonysong
25f5f103c1
忽略测试代码
2024-01-29 10:03:28 +08:00
showmecodett
0c465faf8b
perf delete unused import
2024-01-29 06:09:59 +08:00
showmecodett
c94938bc83
Support Chroma
2024-01-29 05:52:52 +08:00
songpb
147b4c0688
Merge branch 'master' into master
2024-01-28 16:28:28 +08:00
tonysong
e1e8b0f056
修复PDF旋转的BUG
2024-01-28 16:22:57 +08:00
imClumsyPanda
38bc4050ac
Update README.md
2024-01-26 21:11:54 +08:00
imClumsyPanda
ae31e6dd8b
Add files via upload
2024-01-26 21:11:31 +08:00
glide-the
e1f125be4e
Merge pull request #2809 from chatchat-space/glide-the-patch-1
...
Update README.md
2024-01-26 19:50:15 +08:00
glide-the
597ca146d0
Update README.md
2024-01-26 19:50:06 +08:00
liunux4odoo
9c525b7fa5
publish 0.2.10 ( #2797 )
...
新功能:
- 优化 PDF 文件的 OCR,过滤无意义的小图片 by @liunux4odoo #2525
- 支持 Gemini 在线模型 by @yhfgyyf #2630
- 支持 GLM4 在线模型 by @zRzRzRzRzRzRzR
- elasticsearch更新https连接 by @xldistance #2390
- 增强对PPT、DOC知识库文件的OCR识别 by @596192804 #2013
- 更新 Agent 对话功能 by @zRzRzRzRzRzRzR
- 每次创建对象时从连接池获取连接,避免每次执行方法时都新建连接 by @Lijia0 #2480
- 实现 ChatOpenAI 判断token有没有超过模型的context上下文长度 by @glide-the
- 更新运行数据库报错和项目里程碑 by @zRzRzRzRzRzRzR #2659
- 更新配置文件/文档/依赖 by @imClumsyPanda @zRzRzRzRzRzRzR
- 添加日文版 readme by @eltociear #2787
修复:
- langchain 更新后,PGVector 向量库连接错误 by @HALIndex #2591
- Minimax's model worker 错误 by @xyhshen
- ES库无法向量检索.添加mappings创建向量索引 by MSZheng20 #2688
2024-01-26 06:58:49 +08:00
liunux4odoo
a5e758bf82
fix: set default score_threshold to 1; add weather api key to kb_config
2024-01-25 22:50:22 +08:00
Ikko Eltociear Ashimine
370dbfef37
Add README_ja.md ( #2787 )
2024-01-25 22:50:21 +08:00
imClumsyPanda
1c3b928223
Update README.md
2024-01-25 22:50:16 +08:00
imClumsyPanda
454d82b2e4
Add files via upload
2024-01-25 22:49:16 +08:00
Ikko Eltociear Ashimine
ee6a28b565
Add README_ja.md ( #2787 )
2024-01-25 22:17:07 +08:00
zR
f50400a204
Merge pull request #2782 from zRzRzRzRzRzRzR/dev
...
Dev
2024-01-24 17:04:10 +08:00
zR
852ca5f849
更新两行注释
2024-01-24 15:57:04 +08:00
zR
f9a5ae99ee
更新了部分依赖
2024-01-24 15:28:34 +08:00
liunux4odoo
7248163b07
调整依赖;优化webui模型列表;更新wiki版本
2024-01-23 13:11:15 +08:00
imClumsyPanda
60d5f7d439
update req
2024-01-22 23:29:06 +08:00
zR
088a27df27
Merge pull request #2759 from zRzRzRzRzRzRzR/dev
...
更新依赖错误
2024-01-22 20:47:10 +08:00
zR
481d1c4b3a
Merge branch 'chatchat-space:dev' into dev
2024-01-22 20:46:47 +08:00
zR
6df6ed2920
修复错误依赖
2024-01-22 20:46:34 +08:00
zR
57c73b1424
更新错误的依赖
2024-01-22 20:46:04 +08:00
imClumsyPanda
c9c867664e
Update README.md
2024-01-22 15:09:34 +08:00
imClumsyPanda
65a2ccdc64
Add files via upload
2024-01-22 15:09:13 +08:00
zR
31631e56ca
Merge pull request #2753 from zRzRzRzRzRzRzR/dev
...
细节更新和补充
2024-01-22 13:43:56 +08:00
zR
56d32a9908
删除掉一些没用的注释,已经不需要todo了
2024-01-22 13:42:52 +08:00
zR
1adff316e5
更新了最新的整理好的依赖
2024-01-22 13:37:48 +08:00
zR
c50e988f5a
readme更新
2024-01-22 13:24:11 +08:00
zR
85771825ba
更新readme
2024-01-22 13:18:46 +08:00
zR
54e5b41647
Merge pull request #2752 from zRzRzRzRzRzRzR/dev
...
gemini API 修复
2024-01-22 13:15:06 +08:00
zR
17803cb7c1
gemini api 修复调用
2024-01-22 13:14:13 +08:00
zR
64378837ef
Merge pull request #2751 from zRzRzRzRzRzRzR/dev
...
恢复 删除知识库选项
2024-01-22 12:47:05 +08:00
zR
b6d2bc71ce
恢复 删除知识库选项
2024-01-22 12:46:15 +08:00
zR
fb6c84bc57
Merge pull request #2749 from zRzRzRzRzRzRzR/dev
...
配置文件修改
2024-01-22 12:17:07 +08:00
zR
80c26e4a24
Merge branch 'dev' of https://github.com/zRzRzRzRzRzRzR/Langchain-Chatchat into dev
2024-01-22 12:16:13 +08:00
zR
eeba2e2665
配置文件修改
2024-01-22 12:15:47 +08:00
zR
c0968fb581
Merge pull request #2746 from zRzRzRzRzRzRzR/dev
...
支持GLM4
2024-01-22 11:48:43 +08:00
zR
8483c0bc96
Merge branch 'dev' of https://github.com/zRzRzRzRzRzRzR/Langchain-Chatchat into dev
2024-01-22 11:48:16 +08:00
zR
6b61d917a1
支持GLM4
2024-01-22 11:48:13 +08:00
zR
8ac255fc55
Merge branch 'chatchat-space:dev' into dev
2024-01-22 11:46:46 +08:00
zR
56c2a70a74
Merge pull request #2740 from showmecodett/perf-typing
...
perf typing
2024-01-22 10:46:46 +08:00
showmecodett
71deed93df
perf typing
2024-01-21 21:00:12 +08:00
showmecodett
3057c29e47
perf typing
2024-01-21 20:56:26 +08:00
zR
554d6b4820
依赖文件删除,智谱AI 0.2.x 不兼容
2024-01-21 11:50:30 +08:00
zR
e5b4bb41d8
更新GLM 临时解决方案,支持GLM4,版本不兼容,会有bug
2024-01-21 11:48:44 +08:00
zR
0cf65d5933
更新模型配置文件和支持列表
2024-01-20 22:40:31 +08:00
zR
8c2019f8b9
pr 2775 maybe need?
2024-01-20 22:20:02 +08:00
zR
4a77880ee1
Merge branch 'dev' of https://github.com/zRzRzRzRzRzRzR/Langchain-Chatchat into dev
2024-01-20 22:18:25 +08:00
zR
dc07cba1d4
更新依赖
2024-01-20 22:18:22 +08:00
zR
b058e1906f
Merge pull request #2704 from MSZheng20/dev
...
1、ES库index_name获取兼容windows和linux系统 2、补充mappings,创建向量索引结构保持一致 3、添加ES测试方法
2024-01-18 13:11:56 +08:00
zhengmingsheng
2ab944996e
fix:1、index_name获取兼容windows和linux系统 2、补充mappings,创建向量索引结构保持一致 3、添加ES向量库的测试方法
2024-01-18 11:25:27 +08:00
zR
e5acf3d2e6
Merge pull request #2688 from MSZheng20/dev
...
fix:修复ES库无法向量检索.添加mappings创建向量索引
2024-01-17 13:22:13 +08:00
zR
1b5efecc89
Merge pull request #2681 from Lijia0/adapter_pgvector
...
修复bug-langchain新版本PGVector传入connection,插入、删除操作会回滚
2024-01-17 13:22:01 +08:00
zhengmingsheng
b2ea386f60
fix:修复ES库无法使用向量检索.添加mappings创建向量索引
2024-01-17 11:24:13 +08:00
imClumsyPanda
d83de508cc
Update README.md
2024-01-17 10:27:18 +08:00
imClumsyPanda
0a4dfe58a4
Add files via upload
2024-01-17 10:26:58 +08:00
lijia
2c92cd00ae
langchain新版本PGVector传入connection,插入、删除操作会回滚
2024-01-16 16:58:19 +08:00
lijia
67ae61d567
langchain新版本PGVector传入connection,插入、删除操作会回滚
2024-01-16 16:38:06 +08:00
zR
cb3822651b
Merge pull request #2659 from zRzRzRzRzRzRzR/dev
...
更新运行数据库报错和项目里程碑
2024-01-14 10:47:40 +08:00
zR
241690d593
更新运行数据库报错和项目里程碑
2024-01-14 10:46:41 +08:00
zR
f28cd59557
Merge pull request #2648 from xyhshen/patch-1
...
Fix two bugs in Minimax's model worker that affect usage
2024-01-13 16:37:05 +08:00
glide-the
991e824bcd
Merge pull request #2649 from glide-the/dev
...
ChatOpenAI为了判断token有没有超过模型的context上下文长度,
2024-01-13 16:12:43 +08:00
glide-the
f031ebc19e
ChatOpenAI为了判断token有没有超过模型的context上下文长度,每个模型的token算法不一样 ,所以这里应该自己实现token长度计算
...
第一次初始化的时候,openai的类会强制使用3.5,
2024-01-13 16:11:30 +08:00
xieyh
ebda1056e5
Fix two bugs in Minimax's model worker that affect usage, namely do_ Embeddings should return result for multiple documents, and the other option is validate_ Messages, 'role': 'user' should be the uppercase letter 'USER'
2024-01-13 15:44:26 +08:00
zR
0a37fe93b8
Merge pull request #2647 from zRzRzRzRzRzRzR/dev
...
更新即将废弃的启动内容
2024-01-13 13:00:58 +08:00
zR
6df4554c8b
更新即将废弃的启动内容
2024-01-13 13:00:01 +08:00
Zhi-guo Huang
3e959e5b0f
Merge pull request #2640 from chatchat-space/hzg0601-patch-1
...
Update milvus_kb_service.py
2024-01-12 16:58:44 +08:00
Zhi-guo Huang
e55f8cf7a9
Update milvus_kb_service.py
...
修复typo
2024-01-12 16:58:32 +08:00
zR
c5985ae5be
Merge pull request #2638 from zRzRzRzRzRzRzR/dev
...
0.2.10 Agent更新
2024-01-12 12:50:12 +08:00
zR
3333007e13
Merge branch 'chatchat-space:dev' into dev
2024-01-12 12:45:37 +08:00
Lijia0
ff91508d8b
每次创建对象时从连接池获取连接,避免每次执行方法时都新建连接 ( #2480 )
2024-01-12 12:34:40 +08:00
zR
4ac510ff4a
版本更新
2024-01-12 12:02:34 +08:00
zR
269090ea66
更新0.2.x Agent,之后的Agent在0.3.x更新
2024-01-12 12:01:22 +08:00
Creation
75ff268e88
【功能新增】增强对PPT、DOC知识库文件的OCR识别 ( #2013 )
...
* 【功能新增】增强对PPT、DOC文件的OCR识别
* 【功能新增】增强对PPT、DOC文件的OCR识别
* Update mydocloader.py
---------
Co-authored-by: zR <2448370773@qq.com>
2024-01-12 11:04:50 +08:00
zR
e615932e7e
Merge branch 'master' into dev
2024-01-12 10:27:15 +08:00
xldistance
a5b52e1bd1
elasticsearch更新https连接 ( #2390 )
2024-01-12 10:17:28 +08:00
HALIndex
29ef5dda64
Update pgvector connection method following updates in langchain_community, to resolve the 'PGVector' object has no attribute 'connect' error. ( #2591 )
2024-01-12 10:17:04 +08:00
yhfgyyf
03eb5e9d2e
Gemini api ( #2630 )
...
* Gemini-pro api
* Update gemini.py
* Update gemini.py
2024-01-12 10:16:31 +08:00
zR
4f07384c66
0.2.x稳定依赖更新 ( #2627 )
...
0.2.x不会支持langchain 0.1.x以上的内容
2024-01-11 19:58:25 +08:00
天地
3da68b5ce3
删除重复的引入和纠正拼写错误 ( #2599 )
...
* 1.删除重复的引入
2.拼写错误
* 1.参数或者文档拼写错误纠正
2.doc下的faq、install已经删除,更新为ES部署指南,考虑到doc下的文档经常更新,即使扫描doc文件夹,也可能为空的情况,readme.md大概率不会删除。
2024-01-11 18:45:09 +08:00
chatgpt-bot
b653c25fbc
Fix device detection and fallback logic and add 'xpu' ( #2570 )
...
Co-authored-by: zR <2448370773@qq.com>
2024-01-11 18:36:38 +08:00
高厉害
e7bba6bd0a
fix: automatically replace unsupported torch device ( #2514 )
2024-01-11 18:16:31 +08:00
imClumsyPanda
b5064813af
Update README.md
2024-01-11 15:06:59 +08:00
imClumsyPanda
01bac077bc
Add files via upload
2024-01-11 15:06:35 +08:00
liunux4odoo
448c99f969
fix: 过滤 sse_starlette 返回的 ping 包,避免 JSON Decoder error : ping -... ( #2585 )
2024-01-09 09:14:29 +08:00
imClumsyPanda
6f85119f03
Update README.md
2024-01-07 21:59:06 +08:00
imClumsyPanda
440307fa94
Add files via upload
2024-01-07 21:58:35 +08:00
liunux4odoo
17e8bc072b
fix: make_text_splitter use wrong chunk_* parameters when exception. ( close #2561 ) ( #2564 )
2024-01-05 15:06:59 +08:00
liunux4odoo
67034669a9
Merge branch 'panda-master' into panda-dev
2024-01-05 15:05:38 +08:00
Zhi-guo Huang
3d66899b0f
Merge pull request #2540 from chatchat-space/hzg0601-patch-1
...
修复milvus_kwargs问题
2024-01-03 17:14:48 +08:00
Zhi-guo Huang
ce29d14f46
修复milvus_kwargs问题
2024-01-03 17:14:38 +08:00
imClumsyPanda
50aeb24582
Update README.md
2024-01-03 15:30:24 +08:00
imClumsyPanda
fc75c4513a
Add files via upload
2024-01-03 15:30:02 +08:00
liunux4odoo
aeb7a7e93f
增加 PDF_OCR_THRESHOLD 配置项,只对宽高超过页面一定比例(图片宽/页面宽,图片高/页面高)的图片进行 OCR。 ( #2525 )
...
这样可以避免 PDF 中一些小图片的干扰,提高非扫描版 PDF 处理速度
2024-01-02 16:28:36 +08:00
liunux4odoo
61bc815540
fix: Chinese comma in requirements ( #2523 )
2024-01-02 11:26:03 +08:00
liunux4odoo
7d4a6b5edf
fix: ApiRequest.agent_chat 应当返回 dict 而非 str ( #2520 )
2024-01-02 09:54:23 +08:00
imClumsyPanda
3c33ca7b89
Release v0.2.9
2023-12-31 20:15:35 +08:00
imClumsyPanda
f1ae95c8ca
fix typos
2023-12-31 20:14:01 +08:00
imClumsyPanda
719e2713ed
fix typos
2023-12-31 20:13:14 +08:00
imClumsyPanda
349de9b955
Merge branch 'master' into dev
2023-12-31 19:25:01 +08:00
imClumsyPanda
e6c376fba0
update pics
2023-12-31 19:24:42 +08:00
liunux4odoo
c179230ce0
remove /chat/fastchat API endpoint ( #2506 )
2023-12-29 09:44:37 +08:00
liunux4odoo
3b28f40c6a
update requirements: 统一各文件依赖顺序,便于比对;移出streamlit-antd-components; jq默认安装; numexpr 限定 2.8.6 以兼容 py38
2023-12-29 09:35:02 +08:00
liunux4odoo
5cccd5e7aa
merge from master
2023-12-29 09:10:01 +08:00
imClumsyPanda
af38f75b29
Update README.md
2023-12-28 15:50:30 +08:00
imClumsyPanda
a8f94dd595
Add files via upload
2023-12-28 15:49:59 +08:00
liunux4odoo
1f3a32ebaf
fix Yi-34b model config error( close #2491 ) ( #2492 )
2023-12-28 07:57:25 +08:00
liunux4odoo
9ff7bef2c2
新功能:知识库管理界面支持查看、编辑、删除向量库文档 ( #2471 )
...
* 新功能:
- 知识库管理界面支持查看、编辑、删除向量库文档。暂不支持增加(aggrid添加新行比较麻烦,需要另外实现)
- 去除知识库管理界面中重建知识库和删除知识库按钮,建议用户到终端命令操作
修复:
- 所有与知识库名称、文件名称有关的数据库操作函数都改成大小写不敏感,所有路径统一为 posix 风格,避免因路径文本不一致导致数据重复和操作失效 (close #2232)
开发者:
- 添加 update_docs_by_id 函数与 API 接口。当前仅支持 FAISS,暂时未用到,未将来对知识库做更细致的修改做准备
- 统一 DocumentWithScore 与 DocumentWithVsId
- FAISS 返回的 Document.metadata 中包含 ID, 方便后续查找比对
- /knowledge_base/search_docs 接口支持 file_name, metadata 参数,可以据此检索文档
* fix bug
2023-12-26 13:44:36 +08:00
zR
2e1442a5c1
修复 Langchain 更新之后OpenAI在线embed无法正常使用问题
2023-12-23 11:36:11 +08:00
liunux4odoo
4e5bc8b399
修复: zhipu-api 请求出错时返回准确的错误信息
2023-12-22 10:17:00 +08:00
imClumsyPanda
4e69033d33
Update README.md
2023-12-21 22:19:41 +08:00
imClumsyPanda
778d2d906a
Add files via upload
2023-12-21 22:19:12 +08:00
Zhi-guo Huang
d77f778e0d
Merge pull request #2435 from chatchat-space/reranker
...
新增特性:使用Reranker模型对召回语句进行重排
2023-12-21 19:06:59 +08:00
hzg0601
129c765a74
新增特性:reranker对向量召回文本进行重排
2023-12-21 19:05:11 +08:00
hzg0601
5891f94c88
temporarily add reranker
2023-12-21 16:05:16 +08:00
Zhi-guo Huang
60510ff2f0
Update model_config.py.example
2023-12-20 13:33:00 +08:00
Funkeke
c1a32d9f1a
fix:使用在线embedding模型时 报错 There is no current event loop in thread 'Any… ( #2393 )
...
* fix:使用在线embedding模型时 报错 There is no current event loop in thread 'AnyIO worker thread'
* 动态配置在线embbding模型
---------
Co-authored-by: fangkeke <3339698829@qq.com>
2023-12-20 08:40:53 +08:00
liunux4odoo
fdea406101
update requirements: 统一各文件依赖顺序,便于比对;移出streamlit-antd-components; jq默认安装
2023-12-19 15:59:41 +08:00
imClumsyPanda
bba4754994
Update README.md
2023-12-18 15:21:27 +08:00
imClumsyPanda
9fdeb475e9
Add files via upload
2023-12-18 15:20:58 +08:00
huangzhiguo
a870076051
在model_config.py.example中增加qwen量化模型启动的说明
2023-12-15 14:23:34 +08:00
Astlvk
7e01e82470
fixed 迭代器参数传递错误,知识库问答报错TypeError: unhashable type: 'list' ( #2383 )
...
Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
2023-12-15 07:54:36 +08:00
xldistance
7e8391eb55
修复knowledge_base_chat_iterator传参错误 ( #2386 )
2023-12-15 07:53:36 +08:00
xldistance
332e1ccfaa
更新self.dims_length赋值错误 ( #2380 )
2023-12-14 19:56:39 +08:00
jaluik
e7410e40df
fix: 文档错误 ( #2384 )
2023-12-14 16:32:05 +08:00
imClumsyPanda
1cbad32b6e
Update README.md
2023-12-13 18:56:43 +08:00
imClumsyPanda
f45d6ab49c
Add files via upload
2023-12-13 18:56:20 +08:00
lookou
9c5b81cb2b
优化EventSource回包 ( #1200 )
...
通过 sse_startllete 支持 JS 前端 SSE 协议 (Close #2333)
Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
2023-12-13 17:02:27 +08:00
liunux4odoo
472a97a616
所有 chat 接口都改为 EventSourceResponse;ApiRequest 作对应修改
2023-12-13 16:53:24 +08:00
liunux4odoo
c8fef3380c
merge from dev
2023-12-13 16:52:40 +08:00
hzg0601
db008c1af8
为milvus增加额外索引与搜索配置
2023-12-13 15:52:11 +08:00
liunux4odoo
2604c9e761
fix: prompt template name error in file_chat ( #2366 )
2023-12-12 21:12:33 +08:00
hzg0601
95c09981a6
给出chatglm3-6b输出角色标签<|user|>等及自问自答的解决方案
2023-12-11 11:22:39 +08:00
hzg0601
db1c1e2ee4
解决多次调用es创建索引失败的问题
2023-12-11 10:39:59 +08:00
liunux4odoo
2e9319846e
support .xls files
2023-12-08 15:04:08 +08:00
liunux4odoo
7b70776810
fix: doc ext name error in LOADER_DICT
2023-12-08 13:59:55 +08:00
imClumsyPanda
fdd6eb5f6d
Update README.md
2023-12-07 16:07:24 +08:00
imClumsyPanda
bcbeb9d8ac
Add files via upload
2023-12-07 16:07:00 +08:00
hzg0601
ad0b133ac8
解决faiss相似度阈值不在0-1之间的问题
2023-12-06 21:57:59 +08:00
hzg0601
4c2fda7200
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Chatchat into dev
2023-12-06 20:42:32 +08:00
hzg0601
d1f94c2846
temporarily add reranker
2023-12-06 20:42:27 +08:00
hzg0601
1fac51fe35
temporarily save faiss_cache
2023-12-06 09:45:56 +00:00
imClumsyPanda
6547005073
Update README.md
2023-12-04 22:43:20 +08:00
imClumsyPanda
5fe933fa44
Add files via upload
2023-12-04 22:42:49 +08:00
liunux4odoo
67b7c99d03
ocr 支持 GPU 加速(需要手动安装 rapidocr_paddle[gpu]);知识库支持 MHTML 和 Evernote 文件。 ( #2265 )
...
在 requirements 和 Wiki 中增加对可选文档加载器 SDK 的说明 ( close #2264 )
2023-12-04 09:39:56 +08:00
Ean Yang
cf65f44eb6
更新默认模型下载链接 ( #2259 )
2023-12-03 11:59:48 +08:00
liunux4odoo
7d2de47bcf
文件对话和知识库对话 API 接口实现全异步操作,防止阻塞 ( #2256 )
...
* EmbeddingFunAdapter 支持异步操作;文件对话和知识库对话 API 接口实现全异步操作,防止阻塞
* 修复: 使 list_files_from_folder 返回相对路径
2023-12-02 19:22:44 +08:00
zR
dcb76984bc
修复Azure 不设置Max token的bug ( #2254 )
2023-12-02 16:50:56 +08:00
zR
023cb22da7
修改 duckduckgo 依赖错误 ( #2252 )
2023-12-02 12:30:07 +08:00
Zhi-guo Huang
2d0615aede
Merge pull request #2251 from chatchat-space/hzg0601-patch-1
...
Update duckduckgo version
2023-12-02 12:25:24 +08:00
Zhi-guo Huang
643cc6c5be
Update duckduckgo version
2023-12-02 12:25:12 +08:00
liunux4odoo
12113be6ec
在startup中自动执行 create_tables, 确保数据库表被创建
2023-12-02 10:52:29 +08:00
imClumsyPanda
6558647b65
update version
2023-12-01 21:55:35 +08:00
imClumsyPanda
f9348326f5
update config template
2023-12-01 21:54:11 +08:00
liunux4odoo
4fa28c71b1
修复:chat 接口默认使用 memory获取10条历史消息,导致最终拼接的prompt出错 ( #2247 )
...
修改后默认使用用户传入的history,只有同时传入conversation_id和history_len时才从数据库读取历史消息
使用memory还有一个问题,对话角色是固定的,不能适配不同的模型。
其它:注释一些无用的 print
2023-12-01 11:35:43 +08:00
zR
0cc1be224d
依赖升级 ( #2246 )
...
大量依赖升级到最新版
测试环境:Ubuntu 22.04 LTS kernel 6.6.3 Python 3.10.12,Cuda12.3 update1
2023-12-01 11:34:41 +08:00
imClumsyPanda
60f8e1d55e
update aggrid pagination
2023-11-30 23:40:03 +08:00
imClumsyPanda
c34b4136c0
update file format
2023-11-30 23:33:48 +08:00
imClumsyPanda
f2d917d1e4
update config templates
2023-11-30 23:26:15 +08:00
imClumsyPanda
89b07ba55d
update config templates
2023-11-30 23:20:39 +08:00
imClumsyPanda
072e0a2a32
update reqs and server/utils
2023-11-30 22:23:15 +08:00
imClumsyPanda
7e99cc12b3
update reqs
2023-11-30 21:54:09 +08:00
imClumsyPanda
d55f53d8c0
update README.md
2023-11-30 21:50:50 +08:00
imClumsyPanda
120dc50004
update README.md
2023-11-30 21:44:51 +08:00
zty
5ac77e5089
修复: MiniMax和千帆在线embedding模型分批请求的bug ( #2208 )
...
* 修复: MiniMax和千帆在线embedding模型分批请求的bug
* 修改了一处typo
2023-11-30 17:28:22 +08:00
zR
8b70b1db7e
一些细节更新 ( #2235 )
...
* 更新Langchain依赖到0.0.342以上版本
* 更改了一些提示词和依赖,修改了openai异常的问题
* 注释data的打印日志
* 增加Qwen新模型的支持
2023-11-30 17:25:48 +08:00
zR
40918c21de
bug修复和提示词修改 ( #2230 )
...
* 更新Langchain依赖到0.0.343以上版本
* 更改了一些提示词和依赖,修改了openai异常的问题
* 注释data的打印日志
2023-11-30 12:09:53 +08:00
imClumsyPanda
0ca6f40c45
Update README.md
2023-11-30 11:58:04 +08:00
liunux4odoo
c4fe3393b3
添加自定义命令: ( #2229 )
...
/new [conv_name] 新建会话
/del [conv_name] 删除会话
/clear [conv_name] 清空会话
/help 命令帮助
新增依赖:streamlit-modal
2023-11-30 11:39:41 +08:00
imClumsyPanda
7487af3bad
Add files via upload
2023-11-30 11:04:14 +08:00
zR
c4bf8c48ec
0.2.7版本依赖更新,Langchain在0.0.340下才能使用 ( #2213 )
2023-11-29 15:15:03 +08:00
zR
b7a50daa0f
更新Langchain依赖到0.0.342以上版本 ( #2212 )
2023-11-29 15:08:13 +08:00
liunux4odoo
509dee0425
fix: empty docs error in KnowledgeFile
2023-11-29 11:33:43 +08:00
liunux4odoo
7d580d9a47
修复:*_chat 接口中重设 max_tokens 时导致 local variable 'max_tokens' referenced before assignment 错误
2023-11-28 21:00:00 +08:00
imClumsyPanda
6076ab1198
Update README.md
2023-11-27 11:59:35 +08:00
imClumsyPanda
02c33e6ce9
Add files via upload
2023-11-27 11:58:57 +08:00
liunux4odoo
8b695dba03
*_chat 接口中,当 max_tokens=0时,将其设为 None,避免 swagger ui 中默认值为0时访问出错
2023-11-26 16:47:58 +08:00
glide-the
75a2cba078
Merge pull request #2176 from glide-the/dev_command_summary
...
单个知识库根据doc_ids摘要
2023-11-25 23:32:19 +08:00
glide-the
279ffdf117
单个知识库根据doc_ids摘要
2023-11-25 23:31:13 +08:00
glide-the
33374bd9f2
Merge pull request #2175 from glide-the/dev_command_summary
...
提供文档summary_chunk ,支持单文件总结业务实现 使用 MapReduceDocumentsChain 生成摘要
2023-11-25 22:32:13 +08:00
glide-the
248db46187
Merge branch 'dev_summary' into dev_command_summary
...
实现summary_chunk 文档分段总结业务实现
使用 MapReduceDocumentsChain 生成摘要
# Conflicts:
# server/api.py
# server/knowledge_base/kb_doc_api.py
# server/knowledge_base/kb_service/base.py
# server/knowledge_base/migrate.py
2023-11-25 22:30:41 +08:00
glide-the
f57837c07a
Merge branch 'dev_summary' into dev_tmp
...
# Conflicts:
# server/api.py
# server/knowledge_base/kb_doc_api.py
# server/knowledge_base/kb_service/base.py
# server/knowledge_base/migrate.py
2023-11-25 21:02:46 +08:00
hzg0601
08530edb3d
add some comment
2023-11-25 19:56:36 +08:00
Zhi-guo Huang
92dcb11b26
Merge pull request #2173 from chatchat-space/hzg0601-patch-4
...
Update startup.py
2023-11-25 19:45:13 +08:00
Zhi-guo Huang
abb32722fe
Update startup.py
...
修复vllm=0.2.2版本中vllm_worker启动失败的bug
2023-11-25 19:44:33 +08:00
Zhi-guo Huang
717355bf1e
Merge pull request #2171 from chatchat-space/hzg0601-patch-3
...
Update server_config.py.example
2023-11-25 19:41:37 +08:00
Zhi-guo Huang
a83e03011d
Update server_config.py.example
...
针对fschat=0.2.33关于vllm启动的bug给出修补方案
2023-11-25 19:41:21 +08:00
Zhi-guo Huang
f9f16edd13
Update startup.py
...
解决vllm在0.2.2版本启动的bug
2023-11-25 19:38:18 +08:00
Zhi-guo Huang
63bdca1343
Merge pull request #2170 from chatchat-space/hzg0601-patch-2
...
Update requirements.txt
2023-11-25 19:35:11 +08:00
Zhi-guo Huang
3c4d4a5345
Update requirements.txt
...
针对win上的reqirements某些包的安装安装增说明
2023-11-25 19:34:57 +08:00
liunux4odoo
1de4258aa0
给 ApiModelWorker 添加 logger 成员变量,API请求出错时输出有意义的错误信息。 ( #2169 )
...
* 给 ApiModelWorker 添加 logger 成员变量,API请求出错时输出有意义的错误信息。
/chat/chat 接口 conversation_id参数改为默认 "",避免 swagger 页面默认值错误导致历史消息失效
* 修复在线模型一些bug
2023-11-25 13:51:07 +08:00
zR
1b0cf67a57
支持软连接的知识库 ( #2167 )
...
* GLM3支持传入提示词
支持传入提示词的Agent ChatGLM3-6B
* 软连接处理
1. 有效的软连接处理,参考了 #2125
2. 更新了依赖,现在fschat原生支持GLM3的全功能
* 更新了支持的模型列表和依赖
1. 推荐用户使用GLM3-6B取代2代GLM模型
2. 推荐用户使用性能更强的bge模型
3 推荐使用vllm和torch的最新稳定版本
2023-11-24 22:47:55 +08:00
Eden
dfcebf7bc3
支持昆仑万维天工大模型 ( #2166 )
...
---------
Co-authored-by: Eden <chuangqi.huang@ubtrobot.com>
Co-authored-by: liunux4odoo <liunux@qq.com>
2023-11-24 22:25:35 +08:00
Zhi-guo Huang
3839c212db
Merge pull request #2162 from chatchat-space/hzg0601-patch-1
...
Update startup.py
2023-11-24 17:03:19 +08:00
Zhi-guo Huang
1d3a69ff86
Update startup.py
...
解决vllm启动worker_id used before assigned的问题
2023-11-24 17:03:02 +08:00
liunux4odoo
824c29a6d2
将 MiniMax 和 千帆 在线 Embedding 改为 10 个文本一批,防止接口数量限制 ( #2161 )
2023-11-24 16:42:20 +08:00
qiankunli
76151e884a
feat: add with-history prompt ( #2156 )
...
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
2023-11-24 10:05:50 +08:00
liunux4odoo
1b9b777eaf
使 MessageModel 中 conversation_id 为非必填项,避免前端请求错误
2023-11-23 21:42:27 +08:00
liunux4odoo
aae4144476
数据库和向量库中文档 metadata["source"] 改为相对路径,便于向量库迁移 ( #2153 )
...
修复:
- 上传知识库文件名称包括子目录时,自动创建子目录
2023-11-23 19:54:00 +08:00
hzg0601
7a85fe74e9
add llm article to kb/smaples
2023-11-23 14:18:00 +08:00
qiankunli
1c97673d41
feat: add db memory ( #2046 )
...
* feat: add db memory
* WEBUI 添加多会话功能
---------
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
Co-authored-by: liunux4odoo <liunux@qq.com>
2023-11-22 18:38:26 +08:00
imClumsyPanda
274e7a9c0a
Update README.md
2023-11-22 15:27:14 +08:00
imClumsyPanda
7eee9212e0
Add files via upload
2023-11-22 15:26:45 +08:00
glide-the
569209289b
Merge pull request #2130 from glide-the/dev
...
统一在线模型异常报文、增加详细日志
2023-11-21 21:48:39 +08:00
glide-the
17c9632942
统一在线模型异常报文、增加详细日志
2023-11-21 21:47:02 +08:00
liunux4odoo
3cf7422c21
修复:知识库json文件的中文被转为unicode码,导致无法匹配 ( #2128 )
2023-11-21 21:00:46 +08:00
Zhi-guo Huang
ce7255dce1
Update model_config.py.example ( #2110 )
2023-11-20 16:45:55 +08:00
liunux4odoo
a9cf191532
update webui: 默认对话模式改为 LLM对话;lite 模式下可选模型列表不显示本地模型
2023-11-20 16:37:20 +08:00
Zhi-guo Huang
700c4ad170
Update requirements.txt
...
删除中文以防止win上的安装错误
2023-11-20 15:57:26 +08:00
Zhi-guo Huang
262c1fc8c3
Update requirements_api.txt
...
删除中文以防止win安装错误
2023-11-20 15:56:51 +08:00
Zhi-guo Huang
33f43f7a96
Update requirements_lite.txt
...
删除中文,以防止win设备安装错误
2023-11-20 15:56:16 +08:00
liunux4odoo
1a291d9db9
add .pdf & .pptx as knowledge test files; update wiki
2023-11-17 14:32:30 +08:00
liunux4odoo
ad7a6fd438
开发者: ( #2091 )
...
- 修复列出知识库磁盘文件时跳过临时文件的bug:只有目录被排除了,文件未排除
- 优化知识库文档加载器:
- 将 elements 模式改为 single 模式,避免文档被切分得太碎
- 给 get_loader 和 KnowledgeFile 增加 loader_kwargs 参数,可以自定义文档加载器参数
2023-11-17 11:39:32 +08:00
liunux4odoo
68a544ea33
开发者:XXKBService.get_doc_by_id 改为批量处理,提高访问向量库效率。
2023-11-16 11:09:40 +08:00
imClumsyPanda
4ed8f049ab
Update README.md
2023-11-16 10:20:39 +08:00
imClumsyPanda
51c43122cb
Add files via upload
2023-11-16 10:20:18 +08:00
liunux4odoo
fbe214471b
知识库支持 .jsonl, .epub, .xlsx, .xlsd, .ipynb, .odt, .py, .srt, .toml, .doc, .ppt 文件 ( #2079 )
...
* 知识库支持行式 json 文件
如果要使用 json 文件, 需要 `conda install jq`(windows 下 pip install jq 会失败)
开发者:
删除 CustomJsonLoader,使用 langchain 自带的 JsonLoader 处理 json 文件,添加 JsonLinesLoader 处理 jsonl 文件。
* 知识库支持 .epub, .xlsx, .xlsd, .ipynb, .odt, .py, .srt, .toml, .doc, .ppt 文件
为 .eml, .msg, .rst, .rtf, .tsv, .docx, .xml, .pptx 指定专用加载器
2023-11-16 09:37:09 +08:00
liunux4odoo
3b3d948d27
添加文件对话模式 ( #2071 )
...
开发者:
- 添加 /chat/file_chat, /knowledge_base/upload_temp_docs API 接口
- 添加 CACHED_MEMO_VS_NUM, BASE_TEMP_DIR 配置项
2023-11-16 07:39:27 +08:00
liunux4odoo
2adfa4277c
在webui模型列表中包括:非model worker启动的在线模型(如openai-api);已经下载的本地模型 ( #2060 )
2023-11-14 21:17:32 +08:00
zR
21b079d751
GLM3支持传入提示词 ( #2058 )
...
支持传入提示词的Agent ChatGLM3-6B
2023-11-14 17:45:22 +08:00
Hans
c094b5f91c
删除多余文字 ( #2049 )
2023-11-14 10:30:12 +08:00
liunux4odoo
e78a804ec6
close #2044 : duplicated mount_knowledge_base_routes in server/api.py
2023-11-13 20:30:32 +08:00
zR
94d4304638
更新了chatglm3 6b agent的文档,提示词 ( #2041 )
...
更新了chatglm3 6b agent的文档,提示词
修复代理no_proxy格式问题 #1838 的问题,感谢多次复现和验证
修改了pg清理知识库后还会引用之前知识库的问题
2023-11-13 16:30:09 +08:00
Jack
4e8e6de7ff
Update README.md ( #2034 )
2023-11-13 14:27:27 +08:00
liunux4odoo
861510a92b
Update requirements: change comments to english ( #2033 )
...
* Update requirements: change comments to english
2023-11-13 14:03:41 +08:00
imClumsyPanda
e4ffa2f93b
update README.md
2023-11-13 07:33:02 +08:00
imClumsyPanda
f06a819ba6
Merge remote-tracking branch 'origin/master'
2023-11-13 07:13:43 +08:00
imClumsyPanda
b6e366d93a
update README.md
2023-11-13 07:13:28 +08:00
zR
91ff0574df
支持ChatGLM3-6B ( #2021 )
...
* 更新依赖和配置文件中的Agent模型
* 支持基础的glm3_agent
2023-11-12 16:45:50 +08:00
imClumsyPanda
068cb5df9c
Update README.md
2023-11-12 13:21:46 +08:00
imClumsyPanda
33c462a281
Add files via upload
2023-11-12 13:20:39 +08:00
imClumsyPanda
72a1f5dcb3
update README.md
2023-11-10 19:59:31 +08:00
imClumsyPanda
4fca531d97
update README.md
2023-11-10 19:58:24 +08:00
imClumsyPanda
89be31c66c
update version
2023-11-10 19:45:32 +08:00
imClumsyPanda
3462d06759
update model_config.py.example
2023-11-10 19:40:55 +08:00
imClumsyPanda
5e9acfd633
update model_config.py.example
2023-11-10 16:35:42 +08:00
imClumsyPanda
9a741fd14d
update model_config.py.example
2023-11-10 16:34:13 +08:00
imClumsyPanda
3e20e47328
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Chatchat into dev
2023-11-10 16:32:21 +08:00
Zhi-guo Huang
a8f4e7603e
Merge pull request #2011 from hzg0601/dev
...
1. 增加ES支持;2. 修复了若干typo bug
2023-11-10 16:30:18 +08:00
hzg0601
c1440c2609
增加ElasticSearch支持
2023-11-10 16:04:41 +08:00
liunux4odoo
63111a5c87
supdate model_config
2023-11-10 11:46:41 +08:00
liunux4odoo
261b4899c1
supdate model_config
2023-11-10 11:44:40 +08:00
liunux4odoo
b51ba11f45
支持通过配置项同时启动多个模型,将Wiki纳入samples知识库 ( #2002 )
...
新功能:
- 将 LLM_MODEL 配置项改为 LLM_MODELS 列表,同时启动多个模型
- 将 wiki 纳入 samples 知识库
依赖变化:
- 指定 streamlit~=1.27.0。1.26.0会报rerun错误,1.28.0会有无限刷新错误
修复优化:
- 优化 get_default_llm_model 逻辑
- 适配 Qwen 在线 API 做 Embeddings 时最大 25 行的限制
- 列出知识库磁盘文件时跳过 . 开头的文件
2023-11-09 22:15:52 +08:00
WilliamChen-luckbob
ce1001a043
bugfix:dev分支创建知识库必然失败的bug修复 ( #1980 )
...
* bugfix:dev分支创建知识库必然失败的bug修复
* 统一 KBServiceFactory.get_service_by_name 的逻辑,数据库中不存在知识库时返回 None
---------
Co-authored-by: liunux4odoo <liunux@qq.com>
2023-11-09 17:45:21 +08:00
imClumsyPanda
9588bcfa94
Merge branch 'master' into dev
2023-11-09 09:41:26 +08:00
imClumsyPanda
35164b5196
delete outdated qrcode
2023-11-09 09:41:06 +08:00
liunux4odoo
d0d688d4b0
修复:重建知识库时自动创建库表
2023-11-07 21:00:45 +08:00
imClumsyPanda
ccf277c96f
delete outdated qrcode
2023-11-07 16:32:44 +08:00
imClumsyPanda
0e8700edb9
Merge branch 'master' into dev
2023-11-07 16:31:45 +08:00
imClumsyPanda
349adbdfa7
Add files via upload
2023-11-07 16:05:26 +08:00
imClumsyPanda
da1dbf9763
Update README.md
2023-11-07 16:05:03 +08:00
zR
3952fbd464
更新依赖和配置文件中的Agent模型 ( #1984 )
2023-11-07 13:52:47 +08:00
imClumsyPanda
e233e4f220
reformat server/knowledge_base/migrate.py
2023-11-06 22:49:35 +08:00
imClumsyPanda
fb32c31a70
reformat kb_doc_api.py
2023-11-06 22:44:50 +08:00
imClumsyPanda
fe73ceab15
Merge branch 'master' into dev
2023-11-06 22:38:52 +08:00
imClumsyPanda
051a2e97dc
add support for Zhipu-api "chatglm-turbo"
2023-11-06 22:38:05 +08:00
imClumsyPanda
f4f7845f93
reformat startup.py
2023-11-06 22:31:09 +08:00
imClumsyPanda
ce9160fbfa
update requirements.txt
2023-11-06 22:11:55 +08:00
imClumsyPanda
ed2122a8f6
fix bug in basic_config.py.example
2023-11-06 21:49:05 +08:00
imClumsyPanda
a938b67163
reformat config files
2023-11-05 11:17:09 +08:00
imClumsyPanda
5e0476925b
reformat copy_config_example.py
2023-11-05 11:08:55 +08:00
zR
57612d5232
修复一些bug ( #1965 )
...
* 修改一些bug
* 更新掉了一部分之前的bug
2023-11-03 18:56:27 +08:00
qiankunli
fa906b33a8
添加对话评分与历史消息保存功能 ( #1940 )
...
* 新功能:
- WEBUI 添加对话评分功能
- 增加 /chat/feedback 接口,用于接收对话评分
- /chat/chat 接口返回值由 str 改为 {"text":str, "chat_history_id": str}
- init_database.py 添加 --create-tables --clear-tables 参数
依赖:
- streamlit-chatbox==1.1.11
开发者:
- ChatHistoryModel 的 id 字段支持自动生成
- SAVE_CHAT_HISTORY 改到 basic_config.py
* 修复:点击反馈后页面未刷新
---------
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
Co-authored-by: liunux4odoo <liunux@qq.com>
Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
2023-11-03 11:31:45 +08:00
liunux4odoo
554122f60e
Feat ( #1951 )
...
* 知识库支持子目录(不包括temp和tmp开头的目录),文件相对路径总长度不可超过255
* init_database.py 增加 --import-db 参数,在版本升级时,如果 info.db
表结构发生变化,但向量库无需重建,可以在重建数据库后,使用本参数从旧的数据库中导入信息
2023-11-02 14:46:39 +08:00
imClumsyPanda
d4b0b4d83d
Update README.md
2023-11-02 13:32:38 +08:00
imClumsyPanda
36584428d5
Add files via upload
2023-11-02 13:31:52 +08:00
liunux4odoo
d8e15b57ba
知识库支持子目录(不包括temp和tmp开头的目录),文件相对路径总长度不可超过255 ( #1928 )
2023-10-31 16:59:40 +08:00
liunux4odoo
65592a45c3
支持在线 Embeddings, Lite 模式支持所有知识库相关功能 ( #1924 )
...
新功能:
- 支持在线 Embeddings:zhipu-api, qwen-api, minimax-api, qianfan-api
- API 增加 /other/embed_texts 接口
- init_database.py 增加 --embed-model 参数,可以指定使用的嵌入模型(本地或在线均可)
- 对于 FAISS 知识库,支持多向量库,默认位置:{KB_PATH}/vector_store/{embed_model}
- Lite 模式支持所有知识库相关功能。此模式下最主要的限制是:
- 不能使用本地 LLM 和 Embeddings 模型
- 知识库不支持 PDF 文件
- init_database.py 重建知识库时不再默认情况数据库表,增加 clear-tables 参数手动控制。
- API 和 WEBUI 中 score_threshold 参数范围改为 [0, 2],以更好的适应在线嵌入模型
问题修复:
- API 中 list_config_models 会删除 ONLINE_LLM_MODEL 中的敏感信息,导致第二轮API请求错误
开发者:
- 统一向量库的识别:以(kb_name,embed_model)为判断向量库唯一性的依据,避免 FAISS 知识库缓存加载逻辑错误
- KBServiceFactory.get_service_by_name 中添加 default_embed_model 参数,用于在构建新知识库时设置 embed_model
- 优化 kb_service 中 Embeddings 操作:
- 统一加载接口: server.utils.load_embeddings,利用全局缓存避免各处 Embeddings 传参
- 统一文本嵌入接口:server.knowledge_base.kb_service.base.[embed_texts, embed_documents]
- 重写 normalize 函数,去除对 scikit-learn/scipy 的依赖
2023-10-31 14:26:50 +08:00
imClumsyPanda
7f9592773b
Update README.md
2023-10-29 14:54:40 +08:00
imClumsyPanda
1eddb2c321
Add files via upload
2023-10-29 14:54:13 +08:00
imClumsyPanda
ff22d5f98f
Update README.md
2023-10-29 14:53:01 +08:00
imClumsyPanda
b1100ddefb
Add files via upload
2023-10-29 14:52:31 +08:00
liunux4odoo
deed92169f
支持在线 Embeddings:zhipu-api, qwen-api, minimax-api, qianfan-api ( #1907 )
...
* 新功能:
- 支持在线 Embeddings:zhipu-api, qwen-api, minimax-api, qianfan-api
- API 增加 /other/embed_texts 接口
- init_database.py 增加 --embed-model 参数,可以指定使用的嵌入模型(本地或在线均可)
问题修复:
- API 中 list_config_models 会删除 ONLINE_LLM_MODEL 中的敏感信息,导致第二轮API请求错误
开发者:
- 优化 kb_service 中 Embeddings 操作:
- 统一加载接口: server.utils.load_embeddings,利用全局缓存避免各处 Embeddings 传参
- 统一文本嵌入接口:server.embedding_api.[embed_texts, embed_documents]
2023-10-28 23:37:30 +08:00
zR
aa7c580974
Dev ( #1902 )
...
修改Agent的内容
2023-10-27 22:53:43 +08:00
zR
bb72d9ac26
支持GLM ( #1896 )
...
* 支持glm3
2023-10-27 17:56:27 +08:00
zR
d054244e55
Dev ( #1895 )
...
* 修复科大讯飞token问题和Azure的token问题
* 合并PR并改变位置
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-27 14:38:24 +08:00
charlesyju
f19211b1f5
support adding keywords to model tokenizer ( #1622 )
...
* support adding keywords to model tokenizer
* add keyword_preprocess.py usage doc
* init new token with good weights
---------
Co-authored-by: Charles Ju <charlesyju@gmail.com>
2023-10-27 13:57:14 +08:00
zR
6ed87954b2
修复科大讯飞token问题和Azure的token问题 ( #1894 )
...
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-27 13:51:59 +08:00
liunux4odoo
b68f7fcdea
修改qianfan-api使用原始post访问,qianfan sdk无法访问
2023-10-27 13:42:16 +08:00
zR
dea468ab0f
Dev ( #1892 )
...
* 支持了agentlm
* 支持了agentlm和相关提示词
* 修改了Agent的一些功能,加入了Embed方面的一个优化
* 修改了部分Agent的工具
* 增加一些Langchain的自带工具
* 修复一些兼容性的bug
* 恢复知识库
* 恢复知识库
* 1
* 修复Azure问题
* 修复zilliz的问题
* 修复Agent历史记录问题,优化知识库问答搜索的uoji
* 修复讯飞大模型token问题
* 修复讯飞大模型token问题和配置文件
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-27 13:14:48 +08:00
zR
24d1e28a07
一些细节优化 ( #1891 )
...
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-27 11:52:44 +08:00
liunux4odoo
ce8e341b9f
update server_config.py.example: qianfan-api 默认模型改为 ERNIE-Bot。qianfan sdk 对模型名称大小写敏感
2023-10-26 22:48:56 +08:00
liunux4odoo
b4c68ddd05
优化在线 API ,支持 completion 和 embedding,简化在线 API 开发方式 ( #1886 )
...
* 优化在线 API ,支持 completion 和 embedding,简化在线 API 开发方式
新功能
- 智谱AI、Minimax、千帆、千问 4 个在线模型支持 embeddings(不通过Fastchat,后续会单独提供相关api接口)
- 在线模型自动检测传入参数,在传入非 messages 格式的 prompt 时,自动转换为 completion 形式,以支持 completion 接口
开发者:
- 重构ApiModelWorker:
- 所有在线 API 请求封装到 do_chat 方法:自动传入参数 ApiChatParams,简化参数与配置项的获取;自动处理与fastchat的接口
- 加强 API 请求错误处理,返回更有意义的信息
- 改用 qianfan sdk 重写 qianfan-api
- 将所有在线模型的测试用例统一在一起,简化测试用例编写
* Delete requirements_langflow.txt
2023-10-26 22:44:48 +08:00
zR
e74fe2d950
Zilliz修复 ( #1874 )
...
* 修复zilliz的问题
2023-10-25 21:59:26 +08:00
zR
35a7ca74c0
Azure 的fschat支持,弃用Langchain-MODEL ( #1873 )
...
* 支持了agentlm
* 支持了agentlm和相关提示词
* 修改了Agent的一些功能,加入了Embed方面的一个优化
* 修改了部分Agent的工具
* 增加一些Langchain的自带工具
* 修复一些兼容性的bug
* 恢复知识库
* 恢复知识库
* 修复Azure问题
2023-10-25 21:32:40 +08:00
liunux4odoo
27418ba9fa
fix bug, add dependencies: strsimpy, markdownify
2023-10-25 08:58:31 +08:00
liunux4odoo
03e55e11c4
支持lite模式:无需安装torch等重依赖,通过在线API实现LLM对话和搜索引擎对话 ( #1860 )
...
* move get_default_llm_model from webui to ApiRequest
增加API接口及其测试用例:
- /server/get_prompt_template: 获取服务器配置的 prompt 模板
- 增加知识库多线程访问测试用例
支持lite模式:无需安装torch等重依赖,通过在线API实现LLM对话和搜索引擎对话
* fix bug in server.api
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-10-25 08:30:23 +08:00
Zhi-guo Huang
be67ea43d8
Merge pull request #1828 from qiankunli/feat/add-completion-api
...
增加completion功能的API接口,注意暂不支持online_api模型
2023-10-24 22:10:54 +08:00
liunux4odoo
19f5f07d57
fix: unused imported faiss in milvus_kb_server ( close #1849 )
2023-10-24 15:01:19 +08:00
jinke
2f67e1d0cc
update docker image to 0.2.6
...
43.4G, chatglm6b+text2vec-bge-large-chinese.
2023-10-24 12:32:26 +08:00
imClumsyPanda
b166457897
Update README.md
2023-10-24 10:43:04 +08:00
imClumsyPanda
e904bc2ade
Add files via upload
2023-10-24 10:42:34 +08:00
imClumsyPanda
68498bd93b
Update README.md
2023-10-23 22:40:14 +08:00
zR
a036e3ccda
修改了部分Agent Prompt 修改了一些适配问题 ( #1839 )
...
* 支持了agentlm
* 支持了agentlm和相关提示词
* 修改了Agent的一些功能,加入了Embed方面的一个优化
* 修改了部分Agent的工具
* 增加一些Langchain的自带工具
* 修复一些兼容性的bug
2023-10-23 14:53:14 +08:00
zR
e6382cacb1
修复了migrate兼容性错误,python3.8正常使用 ( #1837 )
...
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-23 14:41:56 +08:00
zR
c983e9f559
增加一些Langchain的Agent工具 ( #1836 )
...
* 支持了agentlm
* 支持了agentlm和相关提示词
* 修改了Agent的一些功能,加入了Embed方面的一个优化
* 修改了部分Agent的工具
* 增加一些Langchain的自带工具
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-23 13:22:10 +08:00
liqiankun.1111
b002a2879b
feat: add completion api
2023-10-22 17:07:26 +08:00
zR
303c9d94df
修改,格式了部分Agent工具 ( #1823 )
...
* 支持了agentlm
* 支持了agentlm和相关提示词
* 修改了Agent的一些功能,加入了Embed方面的一个优化
* 修改了部分Agent的工具
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-22 00:07:32 +08:00
zR
1b50547e60
Dev ( #1822 )
...
* 支持了agentlm
* 支持了agentlm和相关提示词
* 修改了Agent的一些功能,加入了Embed方面的一个优化
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-22 00:00:15 +08:00
zR
1c5382d96b
支持AgentLM模型 ( #1821 )
...
* 支持了agentlm
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-21 22:09:53 +08:00
zR
fcbd97203a
Dev ( #1817 )
...
* 更新了最新的readme
* 更新readme,加上目录
* 删掉所有没用的材料,之后都转wiki
* 更新readme和新版本图
2023-10-21 11:35:51 +08:00
liunux4odoo
4aa16d1c7b
merge dev from master hotfix: no temperature in webui
2023-10-21 07:17:18 +08:00
zR
38a48bc831
紧急修复 温度 参数代码消失问题 ( #1816 )
2023-10-21 01:28:34 +08:00
imClumsyPanda
115a123442
Update README.md
2023-10-20 23:34:05 +08:00
imClumsyPanda
9186532fcb
Update README.md
2023-10-20 23:33:04 +08:00
liunux4odoo
9b5f64788c
update dev version: v0.2.7-preview
2023-10-20 23:32:30 +08:00
liunux4odoo
d316efe8d3
release 0.2.6 ( #1815 )
...
## 🛠 新增功能
- 支持百川在线模型 (@hzg0601 @liunux4odoo in #1623 )
- 支持 Azure OpenAI 与 claude 等 Langchain 自带模型 (@zRzRzRzRzRzRzR in #1808 )
- Agent 功能大量更新,支持更多的工具、更换提示词、检索知识库 (@zRzRzRzRzRzRzR in #1626 #1666 #1785 )
- 加长 32k 模型的历史记录 (@zRzRzRzRzRzRzR in #1629 #1630 )
- *_chat 接口支持 max_tokens 参数 (@liunux4odoo in #1744 )
- 实现 API 和 WebUI 的前后端分离 (@liunux4odoo in #1772 )
- 支持 zlilliz 向量库 (@zRzRzRzRzRzRzR in #1785 )
- 支持 metaphor 搜索引擎 (@liunux4odoo in #1792 )
- 支持 p-tuning 模型 (@hzg0601 in #1810 )
- 更新完善文档和 Wiki (@imClumsyPanda @zRzRzRzRzRzRzR @glide-the in #1680 #1811 )
## 🐞 问题修复
- 修复 bge-* 模型匹配超过 1 的问题 (@zRzRzRzRzRzRzR in #1652 )
- 修复系统代理为空的问题 (@glide-the in #1654 )
- 修复重建知识库时 `d == self.d assert error` (@liunux4odoo in #1766 )
- 修复对话历史消息错误 (@liunux4odoo in #1801 )
- 修复 OpenAI 无法调用的 bug (@zRzRzRzRzRzRzR in #1808 )
- 修复 windows下 BIND_HOST=0.0.0.0 时对话出错的问题 (@hzg0601 in #1810 )
2023-10-20 23:16:06 +08:00
liunux4odoo
0e7f0e1452
update readme: remove milestone
2023-10-20 23:12:36 +08:00
zR
c41d7add7d
Dev ( #1814 )
...
* 更新了最新的readme
* 更新readme,加上目录
* 删掉所有没用的材料,之后都转wiki
2023-10-20 23:02:21 +08:00
liunux4odoo
df0ee992f3
update readme: remove milestone
2023-10-20 22:00:33 +08:00
liunux4odoo
ce54414b4f
update readme: remove partners
2023-10-20 21:53:36 +08:00
liunux4odoo
dd7223b3a9
merge master to dev
2023-10-20 21:48:24 +08:00
zR
86ee6fe08c
更新readme ( #1813 )
...
* 更新了最新的readme
* 更新readme,加上目录
2023-10-20 21:37:43 +08:00
zR
46225ad784
Dev ( #1811 )
...
* 北京黑客松更新
知识库支持:
支持zilliz数据库
Agent支持:
支持以下工具调用
1. 支持互联网Agent调用
2. 支持知识库Agent调用
3. 支持旅游助手工具(未上传)
知识库更新
1. 支持知识库简介,用于Agent选择
2. UI对应知识库简介
提示词选择
1. UI 和模板支持提示词模板更换选择
* 数据库更新介绍问题解决
* 关于Langchain自己支持的模型
1. 修复了Openai无法调用的bug
2. 支持了Azure Openai Claude模型
(在模型切换界面由于优先级问题,显示的会是其他联网模型)
3. 422问题被修复,用了另一种替代方案。
4. 更新了部分依赖
* 换一些图
2023-10-20 20:07:59 +08:00
Zhi-guo Huang
109bb7f6c5
Merge pull request #1810 from hzg0601/dev
...
1. 支持加载p-tuning,详细步骤见docs/chatchat加载ptuing.md;2. 根据系统自动指定binding_host
2023-10-20 19:34:02 +08:00
hzg0601
a81bd827dd
根据系统指定binding_host
2023-10-20 19:32:06 +08:00
hzg0601
6e9acfc1af
Merge branch 'dev' of https://github.com/chatchat-space/Langchain-Chatchat into dev
2023-10-20 19:22:36 +08:00
hzg0601
195929b518
支持加载p-tuning,详细步骤见docs/chatchat加载ptuing.md
2023-10-20 19:22:24 +08:00
liunux4odoo
1d9d9df9e9
update baichuan-api: 修正messages参数;支持流式;添加测试用例
2023-10-20 19:09:05 +08:00
zR
e920cd0064
合并分支,支持 ( #1808 )
...
* 北京黑客松更新
知识库支持:
支持zilliz数据库
Agent支持:
支持以下工具调用
1. 支持互联网Agent调用
2. 支持知识库Agent调用
3. 支持旅游助手工具(未上传)
知识库更新
1. 支持知识库简介,用于Agent选择
2. UI对应知识库简介
提示词选择
1. UI 和模板支持提示词模板更换选择
* 数据库更新介绍问题解决
* 关于Langchain自己支持的模型
1. 修复了Openai无法调用的bug
2. 支持了Azure Openai Claude模型
(在模型切换界面由于优先级问题,显示的会是其他联网模型)
3. 422问题被修复,用了另一种替代方案。
4. 更新了部分依赖
2023-10-20 18:13:55 +08:00
liunux4odoo
83e25f8011
remove xformers from requirements*.txt; check llm_model before change model in webui
2023-10-20 15:01:39 +08:00
liunux4odoo
0b25d7b079
fix: correct model_worker's logger and semaphor
2023-10-20 11:50:50 +08:00
liunux4odoo
1b3bd4442c
update model_config.py.example ( #1784 )
2023-10-19 22:37:08 +08:00
liunux4odoo
d053950aee
新功能: ( #1801 )
...
- 更新langchain/fastchat依赖,添加xformers依赖
- 默认max_tokens=None, 生成tokens自动为模型支持的最大值
修复:
- history_len=0 时会带入1条不完整的历史消息,导致LLM错误
- 当对话轮数 达到history_len时,传入的历史消息为空
2023-10-19 22:09:15 +08:00
liunux4odoo
7e28291e9f
Merge pull request #1792 from liunux4odoo/fix
...
支持metaphor搜索引擎(无需代理,key申请简单,目前不支持中文)
2023-10-18 23:05:57 +08:00
liunux4odoo
b9b42991f6
- 支持metaphor搜索引擎(无需代理,key申请简单,目前不支持中文)
...
- 增加默认知识库和默认搜索引擎的配置项
- 修复WEBUI弹出当前模型错误
2023-10-18 23:02:20 +08:00
imClumsyPanda
b8aad555a1
Update README.md
2023-10-18 22:49:00 +08:00
imClumsyPanda
4d48d5f2ab
Add files via upload
2023-10-18 22:48:37 +08:00
zR
69e5da4e7a
北京黑客松更新 ( #1785 )
...
* 北京黑客松更新
知识库支持:
支持zilliz数据库
Agent支持:
支持以下工具调用
1. 支持互联网Agent调用
2. 支持知识库Agent调用
3. 支持旅游助手工具(未上传)
知识库更新
1. 支持知识库简介,用于Agent选择
2. UI对应知识库简介
提示词选择
1. UI 和模板支持提示词模板更换选择
2023-10-18 15:19:02 +08:00
liunux4odoo
9ce328fea9
实现Api和WEBUI的前后端分离 ( #1772 )
...
* update ApiRequest: 删除no_remote_api本地调用模式;支持同步/异步调用
* 实现API和WEBUI的分离:
- API运行服务器上的配置通过/llm_model/get_model_config、/server/configs接口提供,WEBUI运行机器上的配置项仅作为代码内部默认值使用
- 服务器可用的搜索引擎通过/server/list_search_engines提供
- WEBUI可选LLM列表中只列出在FSCHAT_MODEL_WORKERS中配置的模型
- 修改WEBUI中默认LLM_MODEL获取方式,改为从api端读取
- 删除knowledge_base_chat中`local_doc_url`参数
其它修改:
- 删除多余的kb_config.py.exmaple(名称错误)
- server_config中默认关闭vllm
- server_config中默认注释除智谱AI之外的在线模型
- 修改requests从系统获取的代理,避免model worker注册错误
* 修正:
- api.list_config_models返回模型原始配置
- api.list_config_models和api.get_model_config中过滤online api模型的敏感信息
- 将GPT等直接访问的模型列入WEBUI可选模型列表
其它:
- 指定langchain==0.3.313, fschat==0.2.30, langchain-experimental==0.0.30
2023-10-17 16:52:07 +08:00
liunux4odoo
94977c7ab1
修复:切换embed_model时,FAISS向量库未正确释放,导致`d == self.d assert ( #1766 )
...
修复:
- 切换embed_model时,FAISS向量库未正确释放,导致d == self.d assert error (close [求助] 初始化知识库发生错误 #1657 )
- ApiRequest中chat接口增加max_tokens参数
- FileDocModel模型字段错误(字段错误 #1691 )
2023-10-16 21:02:07 +08:00
imClumsyPanda
9163dda5df
Update README.md
2023-10-15 22:20:22 +08:00
imClumsyPanda
70dd7c1f64
Add files via upload
2023-10-15 22:19:57 +08:00
liunux4odoo
cd748128c3
add paramter max_tokens to 4 chat api with default value 1024 ( #1744 )
2023-10-12 16:18:56 +08:00
liunux4odoo
1ac173958d
fix #1737 : MakeFastAPIOffline函数内代码编写错误
2023-10-12 10:56:49 +08:00
liunux4odoo
01577d6264
只启动在server_config中配置的在线API模型
2023-10-12 10:55:53 +08:00
imClumsyPanda
f4153beccf
Update README.md
2023-10-12 09:30:26 +08:00
imClumsyPanda
d35dbc730a
Update README.md
2023-10-11 22:22:23 +08:00
imClumsyPanda
68eb72e94f
Update README.md
2023-10-11 09:21:48 +08:00
imClumsyPanda
dfb36562ca
Add files via upload
2023-10-11 09:21:18 +08:00
imClumsyPanda
c313f99b40
update README.md
2023-10-11 06:13:48 +08:00
imClumsyPanda
76e21c87da
update README.md
2023-10-11 06:10:02 +08:00
imClumsyPanda
bc5f846c6a
update README.md
2023-10-10 21:33:38 +08:00
imClumsyPanda
4578bc4780
update README.md
2023-10-10 21:24:48 +08:00
glide-the
21cf43567a
Merge pull request #1707 from chatchat-space/glide-the-patch-3
...
Update README.md
2023-10-09 14:00:58 +08:00
glide-the
ff652f1f6b
Update README.md
2023-10-09 14:00:49 +08:00
glide-the
e9381f74af
Merge pull request #1705 from chatchat-space/glide-the-patch-1
...
微信二维码
2023-10-09 13:59:37 +08:00
glide-the
97c2126e80
Merge pull request #1706 from chatchat-space/glide-the-patch-2
...
Update README.md
2023-10-09 13:59:24 +08:00
glide-the
15fab6e10f
Update README.md
2023-10-09 13:59:09 +08:00
glide-the
27f5e7d967
微信二维码
2023-10-09 13:58:20 +08:00
zR
111bc45d04
Wiki完善和Agent完善计划 ( #1680 )
...
* 更新上agent提示词代码
* 更新部分文档,修复了issue中提到的bge匹配超过1 的bug
* 按需修改
* 解决了部分最新用户用依赖的bug,加了两个工具,移除google工具
* Agent大幅度优化
1. 修改了UI界面
(1)高亮所有没有进行agent对齐的模型,
(2)优化输出体验和逻辑,使用markdown
2. 降低天气工具使用门槛
3. 依赖更新
(1) vllm 更新到0.2.0,增加了一些参数
(2) torch 建议更新到2.1
(3)pydantic不要更新到1.10.12
* 更新了一些注释
* 修改部分依赖,修改了部分wiki用图
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-10-07 22:00:56 +08:00
zR
7475205eca
Agent提示词更改,增加图片 ( #1667 )
...
* 更新上agent提示词代码
* 更新部分文档,修复了issue中提到的bge匹配超过1 的bug
* 按需修改
* 解决了部分最新用户用依赖的bug,加了两个工具,移除google工具
* Agent大幅度优化
1. 修改了UI界面
(1)高亮所有没有进行agent对齐的模型,
(2)优化输出体验和逻辑,使用markdown
2. 降低天气工具使用门槛
3. 依赖更新
(1) vllm 更新到0.2.0,增加了一些参数
(2) torch 建议更新到2.1
(3)pydantic不要更新到1.10.12
* 更新了一些注释
2023-10-07 11:52:54 +08:00
zR
2c8fc95f7a
Agent大更新合并 ( #1666 )
...
* 更新上agent提示词代码
* 更新部分文档,修复了issue中提到的bge匹配超过1 的bug
* 按需修改
* 解决了部分最新用户用依赖的bug,加了两个工具,移除google工具
* Agent大幅度优化
1. 修改了UI界面
(1)高亮所有没有进行agent对齐的模型,
(2)优化输出体验和逻辑,使用markdown
2. 降低天气工具使用门槛
3. 依赖更新
(1) vllm 更新到0.2.0,增加了一些参数
(2) torch 建议更新到2.1
(3)pydantic不要更新到1.10.12
2023-10-07 11:26:11 +08:00
liunux4odoo
387b4cb967
fix #1638 : baichuan-api未正确配置
2023-10-05 22:46:31 +08:00
liunux4odoo
0304279545
fix #1656 : rename kb_config.py.exmaple to kb_config.py.example
2023-10-05 22:35:13 +08:00
glide-the
038f2eb1ec
修复代理为空的问题
...
(cherry picked from commit 84a4141dec1b8c5da5b62d3ad885927791f6d3ee)
2023-10-04 14:05:00 +08:00
glide-the
37500b878e
指定transformers==4.33.3版本
...
(cherry picked from commit f30b4d5d575308e6ec3794d43c9e7696e399e7fe)
2023-10-04 14:05:00 +08:00
glide-the
48338207bd
修复代理为空的问题
...
(cherry picked from commit a655608d01a1ff44c8f6a3e0ab6ed07cb4e217c4)
2023-10-04 14:05:00 +08:00
glide-the
295783b549
Merge pull request #1654 from glide-the/master
...
修复代理为空的问题
2023-10-04 14:04:11 +08:00
glide-the
84a4141dec
修复代理为空的问题
2023-10-04 14:02:57 +08:00
glide-the
db3efb306a
Merge pull request #1653 from glide-the/master
...
修复代理和transformers版本问题
2023-10-04 13:38:21 +08:00
glide-the
f30b4d5d57
指定transformers==4.33.3版本
2023-10-04 13:35:11 +08:00
glide-the
a655608d01
修复代理为空的问题
2023-10-04 13:33:42 +08:00
zR
fc6a3b07ed
Dev ( #1652 )
...
* 更新上agent提示词代码
* 更新部分文档,修复了issue中提到的bge匹配超过1 的bug
* 按需修改
* 解决了部分最新用户用依赖的bug,加了两个工具,移除google工具
2023-10-04 12:05:46 +08:00
liunux4odoo
332f8be401
fix: windows下bind_host设为0.0.0.0时,将fschat_xx_address指向127.0.0.1,避免请求错误 ( #1651 )
2023-10-03 23:40:05 +08:00
zR
e88d926bbb
修改部分错误的文档,加长了历史记录(for 32k Models) ( #1630 )
...
* 更新上agent提示词代码 (#1626 )
* 修改部分错误的文档,加长了历史记录(for 32k Models) (#1629 )
* 更新上agent提示词代码
* 按需修改
2023-09-29 20:19:31 +08:00
zR
77d38db00e
修改部分错误的文档,加长了历史记录(for 32k Models) ( #1629 )
...
* 更新上agent提示词代码
* 更新部分文档,修复了issue中提到的bge匹配超过1 的bug
* 按需修改
2023-09-29 20:17:29 +08:00
liunux4odoo
eb6f5cf84b
fix: embedding_model_dict used for bge-* models ( #1628 )
...
change to use `get_model_path`
2023-09-29 18:57:15 +08:00
zR
b11d6ab5bb
更新上agent提示词代码 ( #1626 ) ( #1627 )
2023-09-29 18:47:11 +08:00
zR
61c4000859
更新上agent提示词代码 ( #1626 )
2023-09-29 18:45:50 +08:00
zR
b077085fbe
Merge branch 'dev'
2023-09-29 16:44:10 +08:00
zR
d9056a8df6
python3.8用户需要加上__future__ ( #1624 )
...
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写
* issue提到的一个bug
* 温度最小改成0,但是不应该支持负数
* 修改了最小的温度
* 增加了部分Agent支持和修改了启动文件的部分bug
* 修改了GPU数量配置文件
* 1
1
* 修复配置文件错误
* 更新readme,稳定测试
* 更新readme
* python3.8用户需要加这两行
2023-09-29 16:04:44 +08:00
Zhi-guo Huang
6b1e13a4e2
Merge pull request #1623 from hzg0601/dev
...
1. 增加baichuan-api支持;2.增加批量复制configs下.example文件为.py文件的脚本copy_config_example.py
2023-09-29 13:19:44 +08:00
hzg0601
00745c99e2
update baichuan.py
2023-09-29 13:19:17 +08:00
hzg0601
0e20552083
1. 增加baichuan-api支持;2.增加批量复制configs下.example文件为.py文件的脚本copy_config_example.py;3. 更新model_config.py.example
2023-09-29 13:16:14 +08:00
liunux4odoo
ba8d0f8e17
发版:v0.2.5 ( #1620 )
...
* 优化configs (#1474 )
* remove llm_model_dict
* optimize configs
* fix get_model_path
* 更改一些默认参数,添加千帆的默认配置
* Update server_config.py.example
* fix merge conflict for #1474 (#1494 )
* 修复ChatGPT api_base_url错误;用户可以在model_config在线模型配置中覆盖默认的api_base_url (#1496 )
* 优化LLM模型列表获取、切换的逻辑: (#1497 )
1、更准确的获取未运行的可用模型
2、优化WEBUI模型列表显示与切换的控制逻辑
* 更新migrate.py和init_database.py,加强知识库迁移工具: (#1498 )
1. 添加--update-in-db参数,按照数据库信息,从本地文件更新向量库
2. 添加--increament参数,根据本地文件增量更新向量库
3. 添加--prune-db参数,删除本地文件后,自动清理相关的向量库
4. 添加--prune-folder参数,根据数据库信息,清理无用的本地文件
5. 取消--update-info-only参数。数据库中存储了向量库信息,该操作意义不大
6. 添加--kb-name参数,所有操作支持指定操作的知识库,不指定则为所有本地知识库
7. 添加知识库迁移的测试用例
8. 删除milvus_kb_service的save_vector_store方法
* feat: support volc fangzhou
* 使火山方舟正常工作,添加错误处理和测试用例
* feat: support volc fangzhou (#1501 )
* feat: support volc fangzhou
---------
Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
* 第一版初步agent实现 (#1503 )
* 第一版初步agent实现
* 增加steaming参数
* 修改了weather.py
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
* 添加configs/prompt_config.py,允许用户自定义prompt模板: (#1504 )
1、 默认包含2个模板,分别用于LLM对话,知识库和搜索引擎对话
2、 server/utils.py提供函数get_prompt_template,获取指定的prompt模板内容(支持热加载)
3、 api.py中chat/knowledge_base_chat/search_engine_chat接口支持prompt_name参数
* 增加其它模型的参数适配
* 增加传入矢量名称加载
* 1. 搜索引擎问答支持历史记录;
2. 修复知识库问答历史记录传参错误:用户输入被传入history,问题出在webui中重复获取历史消息,api知识库对话接口并无问题。
* langchain日志开关
* move wrap_done & get_ChatOpenAI from server.chat.utils to server.utils (#1506 )
* 修复faiss_pool知识库缓存key错误 (#1507 )
* fix ReadMe anchor link (#1500 )
* fix : Duplicate variable and function name (#1509 )
Co-authored-by: Jim <zhangpengyi@taijihuabao.com>
* Update README.md
* fix #1519 : streamlit-chatbox旧版BUG,但新版有兼容问题,先在webui中作处理,并限定chatbox版本 (#1525 )
close #1519
* 【功能新增】在线 LLM 模型支持阿里云通义千问 (#1534 )
* feat: add qwen-api
* 使Qwen API支持temperature参数;添加测试用例
* 将online-api的sdk列为可选依赖
---------
Co-authored-by: liunux4odoo <liunux@qq.com>
* 处理序列化至磁盘的逻辑
* remove depends on volcengine
* update kb_doc_api: use Form instead of Body when upload file
* 将所有httpx请求改为使用Client,提高效率,方便以后设置代理等。 (#1554 )
将所有httpx请求改为使用Client,提高效率,方便以后设置代理等。
将本项目相关服务加入无代理列表,避免fastchat的服务器请求错误。(windows下无效)
* update QR code
* update readme_en,readme,requirements_api,requirements,model_config.py.example:测试baichuan2-7b;更新相关文档
* 新增特性:1.支持vllm推理加速框架;2. 更新支持模型列表
* 更新文件:1. startup,model_config.py.example,serve_config.py.example,FAQ
* 1. debug vllm加速框架完毕;2. 修改requirements,requirements_api对vllm的依赖;3.注释掉serve_config中baichuan-7b的device为cpu的配置
* 1. 更新congif中关于vllm后端相关说明;2. 更新requirements,requirements_api;
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写 (#1611 )
* Dev (#1613 )
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写
* issue提到的一个bug
* 温度最小改成0,但是不应该支持负数
* 修改了最小的温度
* fix: set vllm based on platform to avoid error on windows
* fix: langchain warnings for import from root
* 修复webui中重建知识库以及对话界面UI错误 (#1615 )
* 修复bug:webui点重建知识库时,如果存在不支持的文件会导致整个接口错误;migrate中没有导入CHUNK_SIZE
* 修复:webui对话界面的expander一直为running状态;简化历史消息获取方法
* 根据官方文档,添加对英文版的bge embedding的指示模板 (#1585 )
Co-authored-by: zR <2448370773@qq.com>
* Dev (#1618 )
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写
* issue提到的一个bug
* 温度最小改成0,但是不应该支持负数
* 修改了最小的温度
* 增加了部分Agent支持和修改了启动文件的部分bug
* 修改了GPU数量配置文件
* 1
1
* 修复配置文件错误
* 更新readme,稳定测试
* 更改readme 0928 (#1619 )
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写
* issue提到的一个bug
* 温度最小改成0,但是不应该支持负数
* 修改了最小的温度
* 增加了部分Agent支持和修改了启动文件的部分bug
* 修改了GPU数量配置文件
* 1
1
* 修复配置文件错误
* 更新readme,稳定测试
* 更新readme
* fix readme
* 处理序列化至磁盘的逻辑
* update version number to v0.2.5
---------
Co-authored-by: qiankunli <qiankun.li@qq.com>
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
Co-authored-by: zR <2448370773@qq.com>
Co-authored-by: glide-the <2533736852@qq.com>
Co-authored-by: Water Zheng <1499383852@qq.com>
Co-authored-by: Jim Zhang <dividi_z@163.com>
Co-authored-by: Jim <zhangpengyi@taijihuabao.com>
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: Leego <leegodev@hotmail.com>
Co-authored-by: hzg0601 <hzg0601@163.com>
Co-authored-by: WilliamChen-luckbob <58684828+WilliamChen-luckbob@users.noreply.github.com>
2023-09-28 23:30:21 +08:00
liunux4odoo
30b8daecb3
fix readme
2023-09-28 23:21:35 +08:00
zR
1b312d5715
更改readme 0928 ( #1619 )
...
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写
* issue提到的一个bug
* 温度最小改成0,但是不应该支持负数
* 修改了最小的温度
* 增加了部分Agent支持和修改了启动文件的部分bug
* 修改了GPU数量配置文件
* 1
1
* 修复配置文件错误
* 更新readme,稳定测试
* 更新readme
2023-09-28 23:09:21 +08:00
zR
efd8edda16
Dev ( #1618 )
...
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写
* issue提到的一个bug
* 温度最小改成0,但是不应该支持负数
* 修改了最小的温度
* 增加了部分Agent支持和修改了启动文件的部分bug
* 修改了GPU数量配置文件
* 1
1
* 修复配置文件错误
* 更新readme,稳定测试
2023-09-28 20:19:26 +08:00
WilliamChen-luckbob
8fa99026c8
根据官方文档,添加对英文版的bge embedding的指示模板 ( #1585 )
...
Co-authored-by: zR <2448370773@qq.com>
2023-09-28 19:18:31 +08:00
imClumsyPanda
db169f628c
Update README.md
2023-09-28 16:00:01 +08:00
imClumsyPanda
0641ce5db4
Add files via upload
2023-09-28 15:59:25 +08:00
liunux4odoo
b3c7f8b072
修复webui中重建知识库以及对话界面UI错误 ( #1615 )
...
* 修复bug:webui点重建知识库时,如果存在不支持的文件会导致整个接口错误;migrate中没有导入CHUNK_SIZE
* 修复:webui对话界面的expander一直为running状态;简化历史消息获取方法
2023-09-28 15:12:03 +08:00
liunux4odoo
8d0f8a5d67
fix: langchain warnings for import from root
2023-09-27 21:55:02 +08:00
liunux4odoo
523764e284
fix: set vllm based on platform to avoid error on windows
2023-09-27 21:43:54 +08:00
zR
d39878ff35
Dev ( #1613 )
...
* 增加了仅限GPT4的agent功能,陆续补充,中文版readme已写
* issue提到的一个bug
* 温度最小改成0,但是不应该支持负数
* 修改了最小的温度
2023-09-27 21:17:50 +08:00
zR
5702554171
增加了仅限GPT4的agent功能,陆续补充,中文版readme已写 ( #1611 )
2023-09-27 19:19:25 +08:00
Zhi-guo Huang
c546b4271e
Merge pull request #1603 from hzg0601/dev
...
1. 更新congif中关于vllm后端相关说明;2. 更新requirements,requirements_api;
2023-09-26 21:57:03 +08:00
hzg0601
2716ff739d
1. 更新congif中关于vllm后端相关说明;2. 更新requirements,requirements_api;
2023-09-26 21:55:57 +08:00
Zhi-guo Huang
56d75af824
Merge pull request #1582 from chatchat-space/fschat_vllm
...
支持vllm推理后端
2023-09-24 13:28:32 +08:00
Zhi-guo Huang
9cbd9f6711
Merge pull request #1581 from hzg0601/dev
...
测试vllm推理框架成功
2023-09-24 02:08:44 +08:00
hzg0601
2d823aa4b1
1. debug vllm加速框架完毕;2. 修改requirements,requirements_api对vllm的依赖;3.注释掉serve_config中baichuan-7b的device为cpu的配置
2023-09-24 02:05:40 +08:00
imClumsyPanda
af46ed9539
Update README.md
2023-09-23 08:35:13 +08:00
imClumsyPanda
39337a6603
Add files via upload
2023-09-23 08:34:50 +08:00
Zhi-guo Huang
3309b5c0c1
Merge pull request #1574 from hzg0601/dev
...
支持vllm模型;根据vllm模型更新支持模型列表
2023-09-23 01:49:04 +08:00
hzg0601
3a6d166e17
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-09-23 01:46:52 +08:00
hzg0601
f4da0845b9
更新文件:1. startup,model_config.py.example,serve_config.py.example,FAQ
2023-09-23 01:38:54 +08:00
hzg0601
810145c5fb
新增特性:1.支持vllm推理加速框架;2. 更新支持模型列表
2023-09-23 01:37:37 +08:00
Zhi-guo Huang
192fbee1fb
Merge pull request #1568 from hzg0601/dev
...
update readme_en,readme,requirements_api,requirements,model_config.py…
2023-09-22 14:35:06 +08:00
hzg0601
89aed8e675
update readme_en,readme,requirements_api,requirements,model_config.py.example:测试baichuan2-7b;更新相关文档
2023-09-22 14:30:28 +08:00
imClumsyPanda
f3042a6a29
merge master
2023-09-22 12:36:45 +08:00
imClumsyPanda
171300c513
update QR code
2023-09-22 12:24:31 +08:00
liunux4odoo
e4a927c5d1
将所有httpx请求改为使用Client,提高效率,方便以后设置代理等。 ( #1554 )
...
将所有httpx请求改为使用Client,提高效率,方便以后设置代理等。
将本项目相关服务加入无代理列表,避免fastchat的服务器请求错误。(windows下无效)
2023-09-21 15:19:51 +08:00
peterz3g
3ff130ecc2
修复csv文件解析编码报错的问题。 ( #1508 )
2023-09-21 14:41:49 +08:00
liunux4odoo
818cb1a491
update kb_doc_api: use Form instead of Body when upload file
2023-09-21 09:57:36 +08:00
glide-the
0586f94c5a
summary_chunk 文档分段总结业务实现
...
使用 MapReduceDocumentsChain 生成摘要
2023-09-20 23:55:56 +08:00
liunux4odoo
92359fb6b9
remove depends on volcengine
2023-09-20 23:02:43 +08:00
imClumsyPanda
6a0a791c80
Update README.md
2023-09-20 22:42:46 +08:00
glide-the
bd0164ea62
处理序列化至磁盘的逻辑
2023-09-20 21:35:23 +08:00
Leego
9bcce0a572
【功能新增】在线 LLM 模型支持阿里云通义千问 ( #1534 )
...
* feat: add qwen-api
* 使Qwen API支持temperature参数;添加测试用例
* 将online-api的sdk列为可选依赖
---------
Co-authored-by: liunux4odoo <liunux@qq.com>
2023-09-20 21:34:12 +08:00
liunux4odoo
b161985d79
fix #1519 : streamlit-chatbox旧版BUG,但新版有兼容问题,先在webui中作处理,并限定chatbox版本 ( #1525 )
...
close #1519
2023-09-20 16:47:07 +08:00
imClumsyPanda
be22869c5e
Update README.md
2023-09-20 16:46:32 +08:00
Jim Zhang
cb2b560a5b
fix : Duplicate variable and function name ( #1509 )
...
Co-authored-by: Jim <zhangpengyi@taijihuabao.com>
2023-09-20 16:46:31 +08:00
Water Zheng
a580cbddab
fix ReadMe anchor link ( #1500 )
2023-09-20 16:46:31 +08:00
lehug
b6c390777a
fix argument name in help text ( #1532 )
2023-09-20 10:38:50 +08:00
imClumsyPanda
30e72ebc3f
Update README.md
2023-09-20 08:26:48 +08:00
imClumsyPanda
3cd73ef11e
Add files via upload
2023-09-20 08:26:26 +08:00
Orion
e07bbf6efb
Add: standard python ignore files ( #1530 )
2023-09-19 18:04:34 +08:00
liunux4odoo
6c4598b356
fix #1519 : streamlit-chatbox旧版BUG,但新版有兼容问题,先在webui中作处理,并限定chatbox版本 ( #1525 )
...
close #1519
2023-09-19 10:09:40 +08:00
liunux4odoo
46af5b7571
fix: llm_model_dict with xxx/xxx local_model_path was parsed as online-api ( #1513 )
2023-09-18 12:10:03 +08:00
imClumsyPanda
1ec63de968
Update README.md
2023-09-18 12:02:42 +08:00
Jim Zhang
59fb309ba4
fix : Duplicate variable and function name ( #1509 )
...
Co-authored-by: Jim <zhangpengyi@taijihuabao.com>
2023-09-18 11:00:04 +08:00
liunux4odoo
1bae930691
修复faiss_pool知识库缓存key错误 ( #1507 )
2023-09-17 16:31:44 +08:00
liunux4odoo
ec85cd1954
move wrap_done & get_ChatOpenAI from server.chat.utils to server.utils ( #1506 )
2023-09-17 16:19:50 +08:00
glide-the
7d31e84cc7
langchain日志开关
2023-09-17 14:18:22 +08:00
liunux4odoo
bb7ce601fc
1. 搜索引擎问答支持历史记录;
...
2. 修复知识库问答历史记录传参错误:用户输入被传入history,问题出在webui中重复获取历史消息,api知识库对话接口并无问题。
2023-09-17 13:58:57 +08:00
glide-the
902ba0c321
增加传入矢量名称加载
2023-09-17 13:56:18 +08:00
glide-the
175c90c362
增加其它模型的参数适配
2023-09-17 13:56:08 +08:00
liunux4odoo
a65bc4a63c
添加configs/prompt_config.py,允许用户自定义prompt模板: ( #1504 )
...
1、 默认包含2个模板,分别用于LLM对话,知识库和搜索引擎对话
2、 server/utils.py提供函数get_prompt_template,获取指定的prompt模板内容(支持热加载)
3、 api.py中chat/knowledge_base_chat/search_engine_chat接口支持prompt_name参数
2023-09-17 13:27:11 +08:00
zR
598eb298df
第一版初步agent实现 ( #1503 )
...
* 第一版初步agent实现
* 增加steaming参数
* 修改了weather.py
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-09-17 11:19:16 +08:00
qiankunli
13cca9cf81
feat: support volc fangzhou ( #1501 )
...
* feat: support volc fangzhou
---------
Co-authored-by: liunux4odoo <41217877+liunux4odoo@users.noreply.github.com>
Co-authored-by: liqiankun.1111 <liqiankun.1111@bytedance.com>
2023-09-17 00:53:12 +08:00
liunux4odoo
7577bd52ce
Merge branch 'pr1501' into dev
2023-09-17 00:30:24 +08:00
liunux4odoo
9a7beef270
使火山方舟正常工作,添加错误处理和测试用例
2023-09-17 00:21:13 +08:00
liunux4odoo
745a105bae
feat: support volc fangzhou
2023-09-16 22:21:16 +08:00
Water Zheng
7eed50337d
fix ReadMe anchor link ( #1500 )
2023-09-16 19:26:29 +08:00
liunux4odoo
42d76aabdf
Update model_config.py.example: wrong provider for qianfan-api ( #1499 )
2023-09-16 11:19:22 +08:00
liunux4odoo
c8d8727783
更新migrate.py和init_database.py,加强知识库迁移工具: ( #1498 )
...
1. 添加--update-in-db参数,按照数据库信息,从本地文件更新向量库
2. 添加--increament参数,根据本地文件增量更新向量库
3. 添加--prune-db参数,删除本地文件后,自动清理相关的向量库
4. 添加--prune-folder参数,根据数据库信息,清理无用的本地文件
5. 取消--update-info-only参数。数据库中存储了向量库信息,该操作意义不大
6. 添加--kb-name参数,所有操作支持指定操作的知识库,不指定则为所有本地知识库
7. 添加知识库迁移的测试用例
8. 删除milvus_kb_service的save_vector_store方法
2023-09-16 09:09:27 +08:00
liunux4odoo
3dde02be28
优化LLM模型列表获取、切换的逻辑: ( #1497 )
...
1、更准确的获取未运行的可用模型
2、优化WEBUI模型列表显示与切换的控制逻辑
2023-09-16 07:15:08 +08:00
liunux4odoo
955b0bc211
修复ChatGPT api_base_url错误;用户可以在model_config在线模型配置中覆盖默认的api_base_url ( #1496 )
2023-09-15 22:56:13 +08:00
liunux4odoo
80375e1ff3
fix merge conflict for #1474 ( #1494 )
2023-09-15 18:11:15 +08:00
liunux4odoo
f7c73b842a
优化configs ( #1474 )
...
* remove llm_model_dict
* optimize configs
* fix get_model_path
* 更改一些默认参数,添加千帆的默认配置
* Update server_config.py.example
2023-09-15 17:52:22 +08:00
imClumsyPanda
456229c13f
update README.md and README_en.md
2023-09-15 14:18:35 +08:00
imClumsyPanda
b2d86bf3f8
Merge branch 'master' into pre-release
2023-09-15 13:53:34 +08:00
imClumsyPanda
fc78004ab3
update qr code
2023-09-15 13:53:07 +08:00
imClumsyPanda
42fba7ef90
Merge branch 'dev' into pre-release
2023-09-15 13:47:25 +08:00
imClumsyPanda
a87a2815da
update knowledge_base and dialogue page of webui
2023-09-15 13:45:47 +08:00
imClumsyPanda
eb49a91190
update webui_pages/knowledge_base.py
2023-09-15 11:04:23 +08:00
imClumsyPanda
f066e427ce
update webui_pages/knowledge_base.py
2023-09-15 10:58:52 +08:00
liunux4odoo
63f0d27167
在readme中添加支持的在线API模型 ( #1485 )
2023-09-15 10:16:15 +08:00
imClumsyPanda
20eef45a58
update README.md
2023-09-15 09:53:58 +08:00
liunux4odoo
30aeec1c45
修改智谱API默认名称,给WEBUI设置主题 ( #1484 )
...
* 給WEBUI设置主题
* chatglm-api更名为zhipu-api
2023-09-15 01:48:02 +08:00
liunux4odoo
f0f1dc2537
补充更多千帆平台支持的模型;除了指定模型名称,支持直接指定模型APIURL,便于填写单独申请的模型地址
2023-09-15 00:30:18 +08:00
liunux4odoo
4cf2e5ea5e
修复文心一言,添加测试用例
2023-09-14 23:37:34 +08:00
imClumsyPanda
fbaca1009e
update requirements.txt, requirements_api.txt, test_different_splitter.py and chinese_recursive_text_splitter.py
2023-09-14 22:59:05 +08:00
imClumsyPanda
1813814a65
update model_config.py.example
2023-09-14 22:29:49 +08:00
imClumsyPanda
4c61a642cf
update model_config.py.example
2023-09-14 22:29:26 +08:00
imClumsyPanda
bda1b01a2d
update model_config.py.example
2023-09-14 22:27:57 +08:00
imClumsyPanda
17985c7f8e
update splitter.md
2023-09-14 22:24:58 +08:00
Zhi-guo Huang
3745b1d1bb
Merge pull request #1479 from hzg0601/dev
...
update readme,readme_en:更新fastchat信息;删除订阅号二维码
2023-09-14 17:01:35 +08:00
hzg0601
6b734ced56
update readme,readme_en:更新fastchat信息;删除订阅号二维码
2023-09-14 17:00:20 +08:00
imClumsyPanda
883445e5b2
增加 百度文心一言 API 接入支持 ( #1477 )
...
* add RapidOCRPDFLoader
* update mypdfloader.py and requirements.txt
* add myimgloader.py
* add test samples
* add TODO to mypdfloader
* add loaders to KnowledgeFile class
* add loaders to KnowledgeFile class
* add ChineseRecursiveTextSplitter
* add ChineseRecursiveTextSplitter
* add baidu ernie api
2023-09-14 15:30:06 +08:00
唐国梁
4c5fc6ab01
edit model_config.py.example
2023-09-14 12:38:37 +08:00
唐国梁
6ad8aee88c
add ES function
2023-09-14 07:54:42 +08:00
zR
769d75d784
修复测试文件 ( #1467 )
...
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-09-13 17:12:05 +08:00
imClumsyPanda
dc413120e2
update text splitter unit test name
2023-09-13 15:53:07 +08:00
imClumsyPanda
f75812afcb
update text splitter unit test name
2023-09-13 15:47:34 +08:00
zR
bfdbe69fa1
增加了自定义分词器适配 ( #1462 )
...
* 添加了自定义分词器适配和测试文件
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
2023-09-13 15:42:12 +08:00
liunux4odoo
c4cb4e19e5
清理不必要的依赖,增加星火API需要的websockets ( #1463 )
2023-09-13 15:35:04 +08:00
liunux4odoo
99b862dfc8
fix SparkApi import error
2023-09-13 14:03:09 +08:00
liunux4odoo
512638a3b1
支持讯飞星火大模型在线API ( #1460 )
...
* 支持讯飞星火大模型在线API
2023-09-13 13:51:05 +08:00
liunux4odoo
16d8809c9a
api和webui知识库操作支持chunk_size/overlap_size/zh_title_enhance参数 ( #1459 )
2023-09-13 11:19:47 +08:00
liunux4odoo
9defa4332e
fix minimax api history error
2023-09-13 10:12:31 +08:00
liunux4odoo
f1f8ab80e4
Update close-issue.yml:提示改成中文,改到凌晨05:30运行 ( #1456 )
2023-09-13 10:06:54 +08:00
liunux4odoo
8b040620de
对话接口支持temperature参数 ( #1455 )
2023-09-13 10:00:54 +08:00
liunux4odoo
a03b8d330d
升级到langchain==0.0.287,fschat==0.0.28;处理langchain.Milvus bug( #10492 ) ( #1454 )
...
* 修复milvus_kb_service中一些bug,添加文档后将数据同步到数据库
* 升级到langchain==0.0.287,fschat==0.0.28;处理langchain.Milvus bug(#10492 )
* 修复切换模型BUG: 从在线API切换模型时出错
2023-09-13 08:43:11 +08:00
liunux4odoo
efd6d4a251
修复milvus_kb_service中一些bug,添加文档后将数据同步到数据库 ( #1452 )
2023-09-12 22:34:03 +08:00
imClumsyPanda
4aa14b859e
增加 ChineseRecursiveTextSplitter ( #1447 )
...
* add RapidOCRPDFLoader
* update mypdfloader.py and requirements.txt
* add myimgloader.py
* add test samples
* add TODO to mypdfloader
* add loaders to KnowledgeFile class
* add loaders to KnowledgeFile class
* add ChineseRecursiveTextSplitter
* add ChineseRecursiveTextSplitter
2023-09-12 17:38:52 +08:00
imClumsyPanda
1d0c6a9184
Merge branch 'master' into pre-release
2023-09-12 15:51:53 +08:00
imClumsyPanda
2020f5bb88
merge master
2023-09-12 15:51:28 +08:00
liunux4odoo
03c021d50f
添加MiniMax在线API支持 ( #1445 )
2023-09-12 15:24:47 +08:00
imClumsyPanda
8064586374
delete .doc from supported formats
2023-09-12 15:22:18 +08:00
liunux4odoo
8a12b9c658
添加自动关闭issue的action ( #1437 )
2023-09-12 10:16:19 +08:00
liunux4odoo
60f88ae92e
fix: 由于server.utils导入model_workers时,导入fastchat model_worker,导致startup启动延迟明显 ( #1436 )
2023-09-12 08:52:00 +08:00
liunux4odoo
6a03611750
fix api and webui: ( #1435 )
...
1. fix #1431 : 优化知识库问答与搜索引擎问答的API接口,避免docs重复返回
2. startup.py根据configs.log_verbose控制log级别
3. 修复/llm_model/list_models的bug:
只有一个参数时,fastapi未返回json导致视图函数出错
2023-09-12 08:31:17 +08:00
liunux4odoo
22ff073309
修改Embeddings和FAISS缓存加载方式,知识库相关API接口支持多线程并发 ( #1434 )
...
* 修改Embeddings和FAISS缓存加载方式,支持多线程,支持内存FAISS
* 知识库相关API接口支持多线程并发
* 根据新的API接口调整ApiRequest和测试用例
* 删除webui.py失效的启动说明
2023-09-11 20:41:41 +08:00
imClumsyPanda
518d3c4951
Update README.md
2023-09-11 15:18:03 +08:00
imClumsyPanda
be621772ab
Add files via upload
2023-09-11 15:17:38 +08:00
Zhi-guo Huang
d0e654d847
Merge pull request #1422 from hzg0601/dev
...
update readme.md,readme_cn.md:更新订阅号QRcode
2023-09-09 17:36:10 +08:00
hzg0601
ed6df7cd24
update readme.md,readme_cn.md:更新订阅号QRcode
2023-09-09 17:34:56 +08:00
glide-the
b0a9d8f30e
增加显示ocr识别进度
2023-09-08 21:32:41 +08:00
glide-the
60e6887e94
Merge pull request #1419 from glide-the/dev
...
增加显示详细日志开关
2023-09-08 20:50:31 +08:00
glide-the
5550e3c1a9
增加显示详细日志开关
2023-09-08 20:48:31 +08:00
liunux4odoo
228fc5bd93
fix startup.py: correct processes count
2023-09-08 15:24:43 +08:00
liunux4odoo
f082edbaad
fix startup.py: correct processes count
2023-09-08 15:23:54 +08:00
liunux4odoo
f94f2793f8
update startup.py: ( #1416 )
...
1. 恢复模型切换功能
2. --model-name支持多个名称(空格分开),同时启动多个模型
3. 优化服务启动顺序。严格按照顺序启动:controller -> [openai-api,
model_worker, api_worker]并行 -> api.py -> webui.py
4. 修复:从在线API模型切换到本地模型时失败
2023-09-08 15:18:13 +08:00
Kyle Zhang
6e9a7e0c89
chore: update .gitignore ( #1364 )
...
Added '/' before knowledge_base/ and configs/*.py to make them match
directories at root folder only.
Signed-off-by: Kyle Zhang <zhangk1985@gmail.com>
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-09-08 13:29:40 +08:00
liunux4odoo
775870a516
改变api视图函数的sync/async,提高api并发能力: ( #1414 )
...
1. 4个chat类接口改为async
2. 知识库操作,涉及向量库修改的使用async,避免FAISS写入错误;涉及向量库读取的改为sync,提高并发
2023-09-08 12:25:02 +08:00
roki1031
196bde3ead
提醒fitz包是来自pyMuPDF ( #1407 )
2023-09-08 12:20:20 +08:00
liunux4odoo
1195eb75eb
merge pr1413
2023-09-08 10:30:07 +08:00
Zhi-guo Huang
f2aed727c2
Merge pull request #1412 from hzg0601/dev
...
update reamd_en.md:删除中文对照
2023-09-08 10:22:24 +08:00
liunux4odoo
4cfee9c17c
根据新的接口修改ApiRequest和webui,以及测试用例。修改后预期webui中批量知识文件相关操作减少时间
2023-09-08 10:22:04 +08:00
hzg0601
136b667683
update reamd_en.md:删除中文对照
2023-09-08 10:19:49 +08:00
Zhi-guo Huang
71a1ae0627
Merge pull request #1411 from hzg0601/dev
...
增加中英对照的reame_en.md, 更新readme.md
2023-09-08 10:01:57 +08:00
hzg0601
607831496b
update readme.md
2023-09-08 09:54:11 +08:00
hzg0601
bf748eb732
add README_en.md: 增加中英对照的readme
2023-09-08 09:46:23 +08:00
hzg0601
10237d24ca
update readme_cn.md
2023-09-08 09:32:33 +08:00
liunux4odoo
661a0e9d72
新功能:
...
- 知识库管理中的add_docs/delete_docs/update_docs均支持批量操作,并利用多线程提高效率
- API的重建知识库接口支持多线程
- add_docs可提供参数控制上传文件后是否继续进行向量化
- add_docs/update_docs支持传入自定义docs(以json形式)。后续考虑区分完整或补充式自定义docs
- download_doc接口添加`preview`参数,支持下载或预览
- kb_service增加`save_vector_store`方法,便于保存向量库(仅FAISS,其它无操作)
- 将document_loader & text_splitter逻辑从KnowledgeFile中抽离出来,为后续对内存文件进行向量化做准备
- KowledgeFile支持docs & splitted_docs的缓存,方便在中间过程做一些自定义
其它:
- 将部分错误输出由print改为logger.error
2023-09-08 08:55:12 +08:00
Light
f422575a17
修复chat接口报错时信息显示KeyError: 'answer'的Bug ( #1399 )
...
Co-authored-by: Light <>
2023-09-07 20:44:21 +08:00
hzg0601
80f00e27f9
update readme.md, add reame_en.md: 1. update supported models list;2. add readme_en.md
2023-09-07 16:27:12 +08:00
imClumsyPanda
6ea4fc7a30
Merge branch 'master' into dev
2023-09-06 21:19:59 +08:00
imClumsyPanda
9ed43ab2ab
Merge branch 'master' into pre-release
2023-09-06 21:19:38 +08:00
imClumsyPanda
54cf79f521
add support for new embedding models sensenova/piccolo-base-zh and sensenova/piccolo-large-zh
2023-09-06 21:17:32 +08:00
imClumsyPanda
eeb152e22c
Merge branch 'master' into dev
2023-09-06 20:09:53 +08:00
imClumsyPanda
59bdfd85ea
Merge branch 'master' into pre-release
2023-09-06 20:09:36 +08:00
imClumsyPanda
f607424c11
fix pdf ocr bug
2023-09-06 20:09:18 +08:00
imClumsyPanda
673410ecd5
fix pdf ocr bug
2023-09-06 20:08:56 +08:00
imClumsyPanda
8ec3db94f7
Update README.md
2023-09-06 20:04:03 +08:00
imClumsyPanda
e9b25e3f14
Add files via upload
2023-09-06 20:03:41 +08:00
hzg0601
76c2c61bb2
update server.model_worker.zhipu.py:更新prompt,遵守zhipu的格式要求
2023-09-06 17:33:00 +08:00
hzg0601
5e4bd5c3d3
update server.model_worker.zhipu.py/base.py:增加流式响应
2023-09-06 11:16:16 +08:00
jinke
bc0a39ab82
update docker desc
...
更新0.2.3 docker
2023-09-06 10:23:34 +08:00
hzg0601
6f039cfdeb
update server.model_workers.base.py/zhipu.py: 支持zhipuapi的stream 流式输出
2023-09-05 23:13:42 +08:00
imClumsyPanda
0ea18314f2
fix unit test name
2023-09-05 21:08:02 +08:00
glide-the
082f429809
Merge pull request #1382 from glide-the/dev
...
增加构建文档metadata检索的开关,移动到dev_metadata_search
2023-09-05 21:02:18 +08:00
imClumsyPanda
5f533570a1
Merge branch 'pre-release' into dev
2023-09-05 21:01:45 +08:00
imClumsyPanda
6702f39db1
update knowledge_base page
2023-09-05 21:01:40 +08:00
imClumsyPanda
afd02317bd
Merge branch 'master' into pre-release
2023-09-05 21:00:58 +08:00
imClumsyPanda
629e0278d5
update knowledge_base page
2023-09-05 21:00:35 +08:00
glide-the
1027ab6c06
增加构建文档metadata检索的开关,移动到dev_metadata_search
2023-09-05 20:59:57 +08:00
glide-the
b9ce09cbab
Merge pull request #1380 from glide-the/dev
...
增加构建文档metadata检索的开关
2023-09-05 18:36:42 +08:00
glide-the
491c9605d9
增加构建文档metadata检索的开关
2023-09-05 18:35:11 +08:00
imClumsyPanda
c26d66772a
Merge branch 'pre-release' into dev
2023-09-05 18:19:21 +08:00
imClumsyPanda
e23e27a9f2
update autodl version
2023-09-05 18:19:13 +08:00
imClumsyPanda
74cca5eb0e
add support for shibing624/text2vec-bge-large-chinese
2023-09-05 18:19:13 +08:00
imClumsyPanda
fdfbf31318
fix streamlit-aggrid showing "For Trial Use Only"
2023-09-05 18:19:13 +08:00
imClumsyPanda
33cbfb72b4
Merge branch 'master' into pre-release
2023-09-05 18:17:31 +08:00
imClumsyPanda
75f1e84b1f
update autodl version
2023-09-05 18:15:43 +08:00
imClumsyPanda
780c1457d0
add support for shibing624/text2vec-bge-large-chinese
2023-09-05 18:04:21 +08:00
imClumsyPanda
c24e00a386
fix streamlit-aggrid showing "For Trial Use Only"
2023-09-05 17:30:58 +08:00
glide-the
0b60a25f2a
知识库默认存储路径 默认自动创建
2023-09-05 17:27:43 +08:00
imClumsyPanda
3a706907ff
Merge branch 'pre-release' into dev
2023-09-05 14:50:06 +08:00
imClumsyPanda
30c00ffac6
Merge branch 'master' into pre-release
2023-09-05 14:47:28 +08:00
imClumsyPanda
9da7313e7e
update requirements.txt
2023-09-05 14:46:26 +08:00
imClumsyPanda
220b1bd9ae
update requirements.txt
2023-09-05 13:41:08 +08:00
liunux4odoo
3e87530478
使zhipuai变为非必要依赖( close #1369 )
2023-09-05 12:43:51 +08:00
liunux4odoo
464ccc6d53
Update migrate.py ( #1371 )
...
fix bug at line 85 : for kb_file in kb_file
2023-09-05 11:52:22 +08:00
TongTie
98e4fbaaa3
docs: Correcting a spelling mistake in README ( #1367 )
...
Co-authored-by: tongtie <tongtie@gmail.com>
2023-09-05 11:52:22 +08:00
liunux4odoo
015ce57691
Update migrate.py ( #1371 )
...
fix bug at line 85 : for kb_file in kb_file
2023-09-05 11:47:25 +08:00
TongTie
53d3fbc335
docs: Correcting a spelling mistake in README ( #1367 )
...
Co-authored-by: tongtie <tongtie@gmail.com>
2023-09-05 11:10:14 +08:00
imClumsyPanda
8ea75417ec
update VERSION
2023-09-05 10:20:59 +08:00
imClumsyPanda
d1b4dea2ca
update VERSION
2023-09-05 10:19:14 +08:00
imClumsyPanda
44262da4e5
Merge branch 'dev' into pre-release
2023-09-05 10:02:37 +08:00
imClumsyPanda
3a7c1f2744
Merge branch 'master' into dev
2023-09-05 09:57:02 +08:00
imClumsyPanda
62aa17b9a4
clean up qr_code
2023-09-05 09:56:51 +08:00
liunux4odoo
053ebb82bf
update startup.py:
...
1. controller改为自动等待
2. 修复:分部分启动时进程引用错误
2023-09-05 09:55:13 +08:00
imClumsyPanda
2275b1d84a
fix place_holder mistake
2023-09-05 09:53:58 +08:00
imClumsyPanda
15619a1270
update model_config.py.example
2023-09-05 08:59:06 +08:00
glide-the
35f2c04535
启动进程放入 try catch 保证任务收到SIGINT后,能够正常退出
2023-09-04 23:03:56 +08:00
glide-the
aa4a5ad224
CTRL-C exit with Python multiprocessing
2023-09-04 22:46:46 +08:00
liunux4odoo
93b133f9ac
将KnowledgeFile的file2text拆分成file2docs、docs2texts和file2text三个部分,在保持接口不变的情况下,实现:
...
1、支持chunk_size和chunk_overlap参数
2、支持自定义text_splitter
3、支持自定义docs
修复:csv文件不使用text_splitter
2023-09-04 21:00:16 +08:00
Zhi-guo Huang
df23349584
Merge pull request #1361 from hzg0601/dev
...
update readme.md:1. 更改一键启动说明的顺序;2. 在一键启动中增加多卡启动的说明;3. 增加多卡启动gpus参数不生效的说明
2023-09-04 19:27:44 +08:00
hzg0601
8dce5f7e7c
update readme.md:增加多卡启动gpus参数不生效的说明
2023-09-04 19:26:35 +08:00
hzg0601
b82ef5dcea
update readme.md:1. 更改一键启动说明的顺序;2. 在一键启动中增加多卡启动的说明
2023-09-04 19:25:57 +08:00
zqt
e21ca447af
milvus/pg kb_service需要实现get_doc_by_id方法
2023-09-04 16:40:05 +08:00
liunux4odoo
8475a5dfd3
Merge branch 'chatchat-space:dev' into dev
2023-09-04 14:44:55 +08:00
imClumsyPanda
38e7c8299c
Update README.md
2023-09-04 10:29:30 +08:00
imClumsyPanda
857e689b8c
Add files via upload
2023-09-04 10:28:50 +08:00
liunux4odoo
0bc9d5c8ee
Merge branch 'dev' into opt_add_doc
2023-09-03 21:38:45 +08:00
imClumsyPanda
27e9ac57cf
Merge branch 'master' into dev
2023-09-03 16:23:57 +08:00
imClumsyPanda
e2354c215b
clean up qr_code
2023-09-03 16:23:37 +08:00
imClumsyPanda
a9035205ff
Merge branch 'master' into dev
2023-09-03 16:22:08 +08:00
imClumsyPanda
4fae7d4884
add unit test for RapidOCRLoader and RapidOCRPDFLoader
2023-09-03 16:13:37 +08:00
imClumsyPanda
8a73673d6b
update model_config.py.example
2023-09-03 15:57:44 +08:00
imClumsyPanda
9855bc6f55
update model_config.py.example
2023-09-03 15:52:17 +08:00
imClumsyPanda
25880ebd52
fix bug when config["device"]="auto"
2023-09-02 22:11:54 +08:00
glide-the
3de9b2649c
协程兼容python版本
2023-09-02 19:29:24 +08:00
glide-the
d7c884e34a
注册器未启动时,整个启动链因为异常被终止
...
使用await asyncio.sleep(3)可以让后续代码等待一段时间,但不是最优解
2023-09-02 19:20:41 +08:00
imClumsyPanda
3391155077
update model_config.py.example
2023-09-02 15:33:57 +08:00
glide-the
3a660d4f74
TODO
2023-09-02 01:10:04 +08:00
liunux4odoo
6cb1bdf623
添加切换模型功能,支持智谱AI在线模型 ( #1342 )
...
* 添加LLM模型切换功能,需要在server_config中设置可切换的模型
* add tests for api.py/llm_model/*
* - 支持模型切换
- 支持智普AI线上模型
- startup.py增加参数`--api-worker`,自动运行所有的线上API模型。使用`-a
(--all-webui), --all-api`时默认开启该选项
* 修复被fastchat覆盖的标准输出
* 对fastchat日志进行更细致的控制,startup.py中增加-q(--quiet)开关,可以减少无用的fastchat日志输出
* 修正chatglm api的对话模板
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-09-01 23:58:09 +08:00
liunux4odoo
55e417a263
升级注意
...
数据库表发生变化,需要重建知识库
新功能
- 增加FileDocModel库表,存储知识文件与向量库Document ID对应关系以及元数据,便于检索向量库
- 增加FileDocModel对应的数据库操作函数(这些函数主要是给KBService调用,用户一般无需使用):
- list_docs_from_db: 根据知识库名称、文件名称、元数据检索对应的Document IDs
- delete_docs_from_db: 根据知识库名称、文件名称删除对应的file-doc映射
- add_docs_to_db: 添加对应的file-doc映射
- KBService增加list_docs方法,可以根据文件名、元数据检索Document。当前仅支持FAISS,待milvus/pg实现get_doc_by_id方法后即自动支持。
- 去除server.utils对torch的依赖
待完善
- milvus/pg kb_service需要实现get_doc_by_id方法
2023-09-01 22:54:57 +08:00
liunux4odoo
96770cca53
Merge branch 'chatchat-space:dev' into dev
2023-09-01 21:01:29 +08:00
zqt
ab4c8d2e5d
Merge remote-tracking branch 'origin/dev' into dev
2023-09-01 18:10:32 +08:00
zqt
9b664d5eb2
添加例子例子"openai_proxy": ' http://127.0.0.1:4780 '
2023-09-01 18:09:59 +08:00
liunux4odoo
1db8a07765
Merge branch 'chatchat-space:dev' into dev
2023-09-01 14:37:32 +08:00
imClumsyPanda
d6dce95682
bug fix
2023-09-01 14:15:13 +08:00
liunux4odoo
427646ff36
Merge branch 'chatchat-space:dev' into dev
2023-09-01 13:57:23 +08:00
imClumsyPanda
6c4ef26e9a
add RapidOCRPDFLoader and RapidOCRLoader ( #1275 )
...
* add RapidOCRPDFLoader
* update mypdfloader.py and requirements.txt
* add myimgloader.py
* add test samples
* add TODO to mypdfloader
* add loaders to KnowledgeFile class
* add loaders to KnowledgeFile class
2023-09-01 10:23:57 +08:00
liunux4odoo
72b9da2649
startup.py增加参数-q | quiet,可以过滤fastchat的controller/model_worker不必要的日志输出 ( #1333 )
...
* startup.py增加参数`-q | quiet`,可以过滤fastchat的controller/model_worker不必要的日志输出
2023-08-31 22:55:07 +08:00
liunux4odoo
c54ee8c289
startup.py增加参数-q | quiet,可以过滤fastchat的controller/model_worker不必要的日志输出
2023-08-31 22:51:51 +08:00
liunux4odoo
ab70f5582d
Merge branch 'chatchat-space:dev' into dev
2023-08-31 22:51:30 +08:00
liunux4odoo
b1201a5f23
优化LLM和Embedding模型运行设备配置,可设为auto自动检测;修复:重建知识库时FAISS未保存 ( #1330 )
...
* 避免configs对torch的依赖;
* webui自动从configs获取api地址(close #1319 )
* bug fix: 重建知识库时FAISS未保存
* 优化LLM和Embedding模型运行设备配置,可设为auto自动检测
2023-08-31 17:44:48 +08:00
liunux4odoo
16fb19d2c3
优化LLM和Embedding模型运行设备配置,可设为auto自动检测
2023-08-31 17:41:09 +08:00
liunux4odoo
80590ef5dc
bug fix: faiss vector store not saved when recreate
2023-08-31 17:34:22 +08:00
liunux4odoo
4bdfb6e154
Merge branch 'chatchat-space:dev' into dev
2023-08-31 17:34:10 +08:00
liunux4odoo
26a9237237
避免configs对torch的依赖;webui自动从configs获取api地址( close #1319 ) ( #1328 )
2023-08-31 16:18:12 +08:00
liunux4odoo
4e73e561fd
避免configs对torch的依赖;webui自动从configs获取api地址( close #1319 )
2023-08-31 16:08:16 +08:00
imClumsyPanda
a5ee38511d
Update README.md
2023-08-30 15:58:47 +08:00
imClumsyPanda
b8831b6d91
Add files via upload
2023-08-30 15:57:29 +08:00
zqt
215bc25f5c
添加知识库使用的向量库测试用例
2023-08-29 15:01:26 +08:00
miraged3
17c842df43
改正文本错误 ( #1296 )
2023-08-29 11:30:25 +08:00
liunux4odoo
34a416b941
优化server_config配置项 ( #1293 )
...
* update server_config.py:
- 在model_config中增加HISTORY_LEN配置参数
- 将server_config中helper function移动到server.utils中
- 统一set_httpx_timeout的定义和调用
* update webui.py:
应用model_config中的配置项:HISTORY_LEN,VECTOR_SEARCH_TOP_K,SEARCH_ENGINE_TOP_K
---------
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-08-29 10:06:09 +08:00
liunux4odoo
ca0ae29fef
运行startup.py时,如果不加参数直接显示配置和帮助信息后退出 ( #1284 )
...
* 统一XX_kb_service.add_doc/do_add_doc接口,不再需要embeddings参数
* 运行startup.py时,如果不加参数直接显示配置和帮助信息后退出
---------
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-08-28 16:03:53 +08:00
liunux4odoo
3acbf4d5d1
增加数据库字段,重建知识库使用多线程 ( #1280 )
...
* close #1172 : 给webui_page/utils添加一些log信息,方便定位错误
* 修复:重建知识库时页面未实时显示进度
* skip model_worker running when using online model api such as chatgpt
* 修改知识库管理相关内容:
1.KnowledgeFileModel增加3个字段:file_mtime(文件修改时间),file_size(文件大小),custom_docs(是否使用自定义docs)。为后面比对上传文件做准备。
2.给所有String字段加上长度,防止mysql建表错误(pr#1177)
3.统一[faiss/milvus/pgvector]_kb_service.add_doc接口,使其支持自定义docs
4.为faiss_kb_service增加一些方法,便于调用
5.为KnowledgeFile增加一些方法,便于获取文件信息,缓存file2text的结果。
* 修复/chat/fastchat无法流式输出的问题
* 新增功能:
1、KnowledgeFileModel增加"docs_count"字段,代表该文件加载到向量库中的Document数量,并在WEBUI中进行展示。
2、重建知识库`python init_database.py --recreate-vs`支持多线程。
其它:
统一代码中知识库相关函数用词:file代表一个文件名称或路径,doc代表langchain加载后的Document。部分与API接口有关或含义重叠的函数暂未修改。
---------
Co-authored-by: liunux4odoo <liunux@qq.com>, hongkong9771
2023-08-28 13:50:35 +08:00
imClumsyPanda
3eb3b7cbaa
Update README.md
2023-08-28 09:11:51 +08:00
imClumsyPanda
9369a6031b
Add files via upload
2023-08-28 09:11:28 +08:00
imClumsyPanda
89e3e9a691
Merge remote-tracking branch 'origin/dev' into dev
2023-08-27 20:23:19 +08:00
imClumsyPanda
8faafa6a32
update format
2023-08-27 20:23:07 +08:00
liunux4odoo
6ef8844b2b
修复使用chatgpt等在线API服务时模型加载错误 ( #1271 )
...
* close #1172 : 给webui_page/utils添加一些log信息,方便定位错误
* 修复:重建知识库时页面未实时显示进度
* skip model_worker running when using online model api such as chatgpt
---------
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-08-27 16:46:59 +08:00
imClumsyPanda
58d5787bdf
Merge branch 'master' into dev
2023-08-27 16:03:14 +08:00
imClumsyPanda
1af8f89a49
Merge branch 'master' into pre-release
2023-08-27 16:02:57 +08:00
zqt
1fa4e906c7
适配score_threshold
2023-08-27 11:21:10 +08:00
zqt
ead2e26da1
Merge remote-tracking branch 'origin/dev' into dev
2023-08-27 10:32:02 +08:00
liunux4odoo
96f69edf7b
修复重建知识库界面无反应的问题,添加一些log信息 ( #1258 )
...
* close #1172 : 给webui_page/utils添加一些log信息,方便定位错误
* 修复:重建知识库时页面未实时显示进度
---------
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-08-26 18:26:38 +08:00
liunux4odoo
9ca53fa3ad
fix #1224 : failed to load json and pdf files ( #1252 )
...
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-08-26 14:21:59 +08:00
imClumsyPanda
37985f29f0
Update requirements.txt
2023-08-26 13:35:47 +08:00
mz
78e79af68b
update INSTALL.md ( #1250 )
...
Co-authored-by: zzflybird <cmz1@qq.com>
2023-08-26 12:30:54 +08:00
zqt
7cbd8ee089
Merge remote-tracking branch 'origin/dev' into dev
2023-08-26 12:22:59 +08:00
imClumsyPanda
f95d41ef47
[BUG] 修复csv文件读取后,单行数据被分成多段。
2023-08-26 11:45:01 +08:00
imClumsyPanda
fea7e8ddf1
update VERSION
2023-08-26 11:10:45 +08:00
imClumsyPanda
32bf508745
update requirements
2023-08-25 22:53:49 +08:00
imClumsyPanda
ab5d1df2a3
update requirements
2023-08-25 22:16:49 +08:00
imClumsyPanda
ec5e5c9b2a
Merge remote-tracking branch 'origin/master'
2023-08-25 22:15:12 +08:00
imClumsyPanda
2e930cf43c
update requirements.txt
2023-08-25 22:14:56 +08:00
imClumsyPanda
021677d5d6
Update README.md
2023-08-25 18:04:06 +08:00
imClumsyPanda
79d225be36
update VERSION
2023-08-25 16:26:51 +08:00
imClumsyPanda
4dafca2376
Merge branch 'master' into pre-release
2023-08-25 16:25:35 +08:00
imClumsyPanda
aaa3e8133c
Merge branch 'dev' into pre-release
2023-08-25 16:24:34 +08:00
hzg0601
faba1b3877
update readme.md, shutdown_all.sh: 在Linux上使用ctrl+C退出可能会由于linux的多进程机制导致multiprocessing遗留孤儿进程
2023-08-25 16:16:44 +08:00
hzg0601
c5e6d4ddf8
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-25 15:45:38 +08:00
imClumsyPanda
33ce276e3e
change default search_engine option to 'duckduckgo'
2023-08-25 15:18:43 +08:00
hzg0601
e68e155687
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-25 14:47:31 +08:00
zqt
9550c8262e
Merge branch 'master' into dev
2023-08-25 13:47:56 +08:00
zqt996
b07d1da90f
Merge pull request #1236 from Pickupppp/master
...
修复上次提交错误
2023-08-25 13:16:28 +08:00
hzg0601
cc0bd4efd9
update server_config.py.example: 增加多卡启动的说明
2023-08-25 11:27:39 +08:00
liunux4odoo
447b370416
在search_engine_chat中检查Bing KEY,并更新tests
2023-08-25 10:58:40 +08:00
hzg0601
999870c3a7
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-25 09:43:46 +08:00
liunux4odoo
29738c071c
update readme about startup.py
2023-08-25 08:19:58 +08:00
Pickupppp
0c63839ff6
修正 milvus 更改错误
2023-08-24 22:53:13 +08:00
zqt
2604341e9e
调整KBService 接口函数do_search 并适配pg
2023-08-24 22:35:30 +08:00
zqt
24e7351d32
Merge branch 'master' into dev
2023-08-24 22:31:37 +08:00
zqt996
67ac53242d
Merge pull request #1233 from Pickupppp/master
...
修复 milvus 作为默认数据库初始化异常和调用search方法异常
2023-08-24 22:28:38 +08:00
Meiracle
bc3dbb443e
修复搜索引擎聊天接口 ( #1228 )
...
* 修复搜索引擎聊天接口
* 修复知识库聊天接口
* 恢复
2023-08-24 22:18:33 +08:00
imClumsyPanda
659d017fd3
Merge branch 'master' into dev
2023-08-24 21:46:00 +08:00
imClumsyPanda
412a3ea9c8
Update README.md
2023-08-24 21:45:54 +08:00
imClumsyPanda
c9220ae9bf
Add files via upload
2023-08-24 21:45:54 +08:00
imClumsyPanda
e995301995
Merge branch 'dev' into pre-release
2023-08-24 21:44:22 +08:00
imClumsyPanda
12cd7327f8
Merge branch 'master' into dev
2023-08-24 21:44:08 +08:00
Pickupppp
050a585a9d
修复 milvus 作为默认数据库初始化异常和调用search方法异常
2023-08-24 21:31:02 +08:00
zqt
2a2b95d214
search_engine_chat bug
2023-08-24 17:25:54 +08:00
liunux4odoo
63ca393731
参照chat,给knowledge_base_chat/search_engine_chat添加chatgpt代理设置
2023-08-24 15:10:51 +08:00
imClumsyPanda
50c6369f46
Update README.md
2023-08-24 14:25:19 +08:00
imClumsyPanda
a0437ba94f
Add files via upload
2023-08-24 14:24:44 +08:00
zqt
ea4b5ebd16
Merge branch 'master' into dev
2023-08-24 14:16:21 +08:00
zqt996
4180fdbbb8
Merge pull request #1221 from zqt996/master
...
添加chatgpt 调用代理设置
2023-08-24 13:54:34 +08:00
zqt
37454db3ec
添加chatgpt 调用代理设置
2023-08-24 13:51:17 +08:00
liunux4odoo
4899c3b3cc
set max threads of numexpr to improve performance and ommit warnings
2023-08-24 11:04:30 +08:00
imClumsyPanda
3504cb5274
update model_config.py.example
2023-08-23 23:04:13 +08:00
zR
7291e77978
support for bge-large-zh-noinstruct and openai text-embedding-ada-002 ( #1119 )
...
* support for bge-large-zh-noinstruct and openai text-embedding-ada-002
* 完善了readme,修改了BGE模型的载入方式
* 补充了readme中bge-large-zh-noinstruct的信息
* Update faiss_kb_service.py
* Update utils.py
---------
Co-authored-by: zR <zRzRzRzRzRzRzR>
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-08-23 22:55:53 +08:00
imClumsyPanda
4bcc74d214
update prompt template
2023-08-23 21:52:12 +08:00
liunux4odoo
351b62f7a7
fix part of #1206 : add/delete/update_doc() get unexpected keyword argument 'not_refresh_vs_cache`
2023-08-23 15:26:52 +08:00
liunux4odoo
44edce6bcf
fix #1142 : 在History中使用jinja2模板代替f-string,避免消息中含有{ }时出错
2023-08-23 08:35:26 +08:00
Zhi-guo Huang
054ae4715d
Merge pull request #1203 from chatchat-space/hzg0601-patch-1
...
Update README.md:lora加载详细步骤参考
2023-08-22 23:57:51 +08:00
Zhi-guo Huang
42f6b2d1f6
Update README.md
...
lora加载详细步骤参考
2023-08-22 23:53:29 +08:00
zqt996
d79676cad1
Merge pull request #1199 from zqt996/master
...
修复pg和milvus kbservice代码
2023-08-22 16:53:39 +08:00
zqt
16542f20b4
修复pg和milvus kbservice代码
2023-08-22 16:52:04 +08:00
zqt996
cb29e1ed23
Merge pull request #1198 from chatchat-space/dev
...
pg similarity_search 转 similarity_search_with_score
2023-08-22 16:41:37 +08:00
zqt996
11856cc542
Merge pull request #1160 from shutter-cp/master
...
fix bug 1159
2023-08-22 16:38:06 +08:00
imClumsyPanda
2802e96b91
Update README.md
2023-08-22 11:29:18 +08:00
imClumsyPanda
01233ef1a1
Add files via upload
2023-08-22 11:28:54 +08:00
liunux4odoo
c82134c07b
Update utils.py: correct recreate_vector_store's timeout ( #1181 )
2023-08-21 18:01:59 +08:00
liunux4odoo
c571585ffd
optimize recreate vector store: save vector store once after all docs parsed for FAISS
2023-08-21 08:50:15 +08:00
liunux4odoo
f40bb69224
优化FAISS向量库多文件操作;修复recreate_vector_store,大量文件时不再超时。
2023-08-20 19:10:29 +08:00
zqt996
71d0f7d965
Merge pull request #1171 from zqt996/master
...
添加向量库的QA
2023-08-20 18:10:26 +08:00
zqt996
8d5966e9e1
Merge branch 'chatchat-space:master' into master
2023-08-20 18:04:13 +08:00
zqt
b3450bfc96
添加milvus 和 pg QA说明
2023-08-20 18:03:23 +08:00
imClumsyPanda
cae0452f69
Merge branch 'master' into pre-release
2023-08-20 17:55:29 +08:00
imClumsyPanda
7bd644701c
Merge branch 'master' into dev
2023-08-20 17:55:12 +08:00
imClumsyPanda
1996db9e4d
update bug_report template
2023-08-20 17:54:19 +08:00
imClumsyPanda
56fdc02030
Merge branch 'master' into pre-release
2023-08-20 17:31:58 +08:00
imClumsyPanda
b05f7b758e
Merge branch 'master' into dev
2023-08-20 17:30:47 +08:00
imClumsyPanda
adbee9f777
fix add_argument fault in startup.py
2023-08-20 17:30:39 +08:00
imClumsyPanda
f0bcb3105a
update langchain version requirements
2023-08-20 17:30:39 +08:00
imClumsyPanda
2e1396a2d5
fix add_argument fault in startup.py
2023-08-20 17:29:50 +08:00
imClumsyPanda
fd5988422e
update langchain version requirements
2023-08-20 16:52:56 +08:00
liunux4odoo
150a78bfd9
update kb_doc_api:make faiss cache working; delete vector store docs before add duplicate docs
2023-08-20 16:52:49 +08:00
imClumsyPanda
cb3fe84fe3
update VERSION
2023-08-20 10:41:28 +08:00
imClumsyPanda
d694652b87
update VERSION
2023-08-20 10:40:31 +08:00
imClumsyPanda
62aa97bb32
Merge branch 'master' into dev
2023-08-20 10:39:30 +08:00
imClumsyPanda
cdea240c31
update README.md and llm_api_stale.py
2023-08-20 10:38:41 +08:00
liunux4odoo
956237feac
add api tests
2023-08-19 15:19:01 +08:00
liunux4odoo
69627a2fa3
update chat and knowledge base api: unify exception processing and return types
2023-08-19 15:14:45 +08:00
liunux4odoo
62d6f44b28
fix startup.py
2023-08-18 21:30:50 +08:00
imClumsyPanda
523aed015c
Update README.md
2023-08-18 19:46:16 +08:00
imClumsyPanda
2bf9d0d812
Add files via upload
2023-08-18 19:45:45 +08:00
liunux4odoo
fe9f2df17d
fix startup.py: correct command help info
2023-08-18 16:46:59 +08:00
陈鹏
95d9fb0ee9
fix bug 1159
...
修复使用使用pg存储向量时,向量检索错误 {TypeError}TypeError("'Document' object is not subscriptable")
2023-08-18 14:41:11 +08:00
liunux4odoo
d4cf77170a
fix webui: correct error messages
2023-08-18 11:47:49 +08:00
liunux4odoo
c3627de005
fix startup.py: add log info before server starting
2023-08-18 08:48:02 +08:00
imClumsyPanda
adb102f5f0
update VERSION
2023-08-17 22:32:42 +08:00
imClumsyPanda
4fb2e2198b
merge dev_allinone
2023-08-17 22:29:26 +08:00
imClumsyPanda
d9f74ec061
update README.md
2023-08-17 22:26:41 +08:00
imClumsyPanda
67839daad3
reformat and add version to startup.py
2023-08-17 22:22:28 +08:00
imClumsyPanda
52837429d2
update configs.__init__, webui.py and api.py
2023-08-17 22:19:37 +08:00
liunux4odoo
4278d1e000
fix startup.py
2023-08-17 21:57:13 +08:00
imClumsyPanda
5ec512801f
update configs.__init__
2023-08-17 21:51:21 +08:00
liunux4odoo
f8229fc4a9
update server_config example
2023-08-17 21:50:36 +08:00
imClumsyPanda
8b3b869418
update README.md
2023-08-17 21:44:30 +08:00
imClumsyPanda
7f7238168c
reformat model_config.py.example
2023-08-17 21:31:30 +08:00
imClumsyPanda
4318197ac7
reformat server_config.py.example
2023-08-17 21:30:40 +08:00
imClumsyPanda
0ecf3379b4
add descriptions about server_config in README.md
2023-08-17 21:29:16 +08:00
imClumsyPanda
a97cf021a9
Merge branch 'pre-release' into dev
2023-08-17 21:23:07 +08:00
imClumsyPanda
7b7981facc
Merge branch 'master' into pre-release
2023-08-17 21:20:33 +08:00
imClumsyPanda
d430ec2be1
Update README.md
2023-08-17 21:09:05 +08:00
imClumsyPanda
3f0c5727ca
Add files via upload
2023-08-17 21:09:05 +08:00
Ikko Eltociear Ashimine
c792e770e8
Fix typo in README.md
...
--model-path-addresss -> --model-path-address
2023-08-17 21:09:05 +08:00
xain
6d1ea9bc99
Update utils.py ( #1128 )
...
不区分文件扩展名的大小写。
2023-08-17 21:09:05 +08:00
liunux4odoo
d4c6a23a8d
log server informations after startup
2023-08-17 20:02:28 +08:00
hzg0601
0830f0d3b7
update readme: 更新startup启动方式说明
2023-08-17 17:17:06 +08:00
hzg0601
44d4bacf1c
update llm_api_launch,api_allinone,webui_allinone,readme:1.llm_api_launch,api_allinone_webui_allinone更名;2. 更新readme关于startup的说明
2023-08-17 16:59:16 +08:00
liunux4odoo
6c9e3ddc21
make webui started at last
2023-08-17 14:22:19 +08:00
liunux4odoo
7dfc337bfa
add controller parameter. used to run model-worker
2023-08-17 14:11:21 +08:00
hzg0601
f1251454b1
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-17 13:40:55 +08:00
liunux4odoo
f92b002342
add startup.py: start specified servers with one command. see python startup.py --help
2023-08-17 13:24:53 +08:00
Zhi-guo Huang
f29a877bd0
Merge pull request #1137 from gaoyuanzero/dev
...
Update README.md
2023-08-17 10:49:14 +08:00
gaoyuanzero
a87fa10213
Update README.md
...
fastchat以hugggingface的PEFT包加载精调模型,不仅仅支持LoRA,还支持P-tuing, prefix-tuning, IA3等精调模型,故文档中的LoRA应统一改为PEFT
2023-08-17 10:43:46 +08:00
Zhi-guo Huang
0d763cd2bc
Merge pull request #1135 from bones-zhu/dev
...
Update README.md
2023-08-17 10:38:04 +08:00
bones-zhu
4f8d65555f
Update README.md
...
更新端口占用情况下shell脚本启动方式的方法
2023-08-17 10:34:35 +08:00
Zhi-guo Huang
c4208b351c
Merge pull request #1133 from chinainfant/dev
...
Update README.md
2023-08-17 10:23:10 +08:00
chinainfant
87eecf56bd
Update README.md
...
fix typo
2023-08-17 10:21:51 +08:00
Zhi-guo Huang
2aca635b3f
Merge pull request #1132 from gaoyuanzero/dev
...
Update README.md
2023-08-17 10:06:48 +08:00
gaoyuanzero
a0ba4689fe
Update README.md
...
readme一键启动适用脚本说明修改
2023-08-17 10:05:52 +08:00
imClumsyPanda
7ef032bcf4
Update README.md
2023-08-17 09:57:10 +08:00
imClumsyPanda
3e8eec2e19
Add files via upload
2023-08-17 09:56:48 +08:00
Zhi-guo Huang
e4c5ea5924
Merge pull request #1131 from eltociear/eltociear-patch-1
...
Fix typo in README.md
2023-08-17 09:29:07 +08:00
Ikko Eltociear Ashimine
bef36608e0
Fix typo in README.md
...
--model-path-addresss -> --model-path-address
2023-08-17 00:33:58 +09:00
imClumsyPanda
9bf0883587
update webui_allinone.py format
2023-08-16 23:31:07 +08:00
hzg0601
7cca0e2a72
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-16 23:00:32 +08:00
hzg0601
1e12944a5d
更新shutdown_all.sh:更新mac设备的额外说明
2023-08-16 22:58:59 +08:00
xain
7cd7ca240b
Update utils.py ( #1128 )
...
不区分文件扩展名的大小写。
2023-08-16 22:40:05 +08:00
imClumsyPanda
38aea8fd9b
update README.md
2023-08-16 22:38:34 +08:00
hzg0601
832c261cdf
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-16 22:26:27 +08:00
hzg0601
1a40d464be
更新model_config.py.example: 更改所有模型的默认端口为8888
2023-08-16 22:26:18 +08:00
imClumsyPanda
8396b57101
update format of api_allinone.py and llm_api_launch.py
2023-08-16 22:24:29 +08:00
imClumsyPanda
b9fa84635d
update README.md
2023-08-16 22:21:02 +08:00
imClumsyPanda
641fcaee40
merge dev
2023-08-16 22:19:18 +08:00
imClumsyPanda
8085bc38c0
Update README.md
2023-08-16 22:17:18 +08:00
imClumsyPanda
8e93a69e1a
Update README.md
2023-08-16 22:17:18 +08:00
imClumsyPanda
8524196948
Add files via upload
2023-08-16 22:17:18 +08:00
imClumsyPanda
8e805b18db
update README.md
2023-08-16 22:17:03 +08:00
imClumsyPanda
d7fe158d78
git update README.md
2023-08-16 22:06:27 +08:00
liunux4odoo
6c00c03faa
llm_api can be terminated by Ctrl+c. success on windows
2023-08-16 17:48:55 +08:00
liunux4odoo
e7d07a7923
Merge remote-tracking branch 'refs/remotes/origin/dev' into dev
2023-08-16 16:16:56 +08:00
liunux4odoo
8ed1f8efca
update fastchat to 0.2.24
2023-08-16 16:15:45 +08:00
hzg0601
84b491b8b2
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-16 16:00:40 +08:00
hzg0601
5f1471232d
update llm_api_launch.py:修复本地加载问题
2023-08-16 16:00:24 +08:00
liunux4odoo
f64affc930
update llm_api and api server:
...
1. fastchat's controller/model_worker/api_server use swagger UI offline.
2. add custom title and icon.
3. remove fastapi-offline dependence
2023-08-16 14:20:09 +08:00
liunux4odoo
67b8ebef52
update api and webui:
...
1. 增加search_docs接口,返回原始知识库检索文档,close #1103
2. 为FAISS检索增加score_threshold参数。milvus和PG暂不支持
2023-08-16 13:18:58 +08:00
hzg0601
f3a1247629
update readme
2023-08-16 11:36:53 +08:00
hzg0601
b97358ea33
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-16 11:15:31 +08:00
hzg0601
8e00f8305b
1. 更新allinone脚本提示,增加中文提示;2. 新增服务一键停止脚本shutdown_all.sh;3. 更新readme说明;3. 修复命令行bug
2023-08-16 11:15:10 +08:00
liunux4odoo
a47240e871
fix KnowledgeFile: set text_splitter_name in database to SpacyTextSplitter if it is not set
2023-08-16 10:14:47 +08:00
hzg0601
17278922dc
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-16 10:14:28 +08:00
hzg0601
348edb9a0d
更新提示
2023-08-16 10:13:51 +08:00
liunux4odoo
1551adb867
fix webui: use kb_names as selected_kb's options to avoid index error after delete_doc
2023-08-16 10:04:17 +08:00
liunux4odoo
f9d5038e59
fix webui utils: remove unneeded error check
2023-08-16 09:33:55 +08:00
imClumsyPanda
75d6feb55b
Update README.md
2023-08-16 08:30:00 +08:00
hzg0601
b40beac1a8
Merge branch 'dev' of github.com:chatchat-space/Langchain-Chatchat into dev
2023-08-15 15:34:50 +08:00
hzg0601
116302f3b5
update readme
2023-08-15 15:33:16 +08:00
liunux4odoo
7c0e9c46db
fix api & webui: 1.add logs, 2. check json response, 3. set timeout=False in recreate_vector_stoore
2023-08-15 14:24:54 +08:00
imClumsyPanda
e3d968d043
Update README.md
2023-08-15 12:09:13 +08:00
imClumsyPanda
c37f3f27ee
Add files via upload
2023-08-15 12:08:43 +08:00
hzg0601
80f44ba24e
git pull dev
2023-08-15 11:22:19 +08:00
Zhi-guo Huang
ec4d3e84ce
1. 增加api的一键启动脚本;2. 增加webui的一键启动脚本;3. 更新readme;4. 调整llm_api_launch ( #1097 )
2023-08-15 11:20:53 +08:00
hzg0601
5c0274efce
1. 增加api的一键启动脚本;2. 增加webui的一键启动脚本;3. 更新readme;4. 调整llm_api_launch
2023-08-15 11:02:32 +08:00
imClumsyPanda
0568e9be47
add stream_api_test.py
2023-08-14 20:08:37 +08:00
imClumsyPanda
d5fcc958b8
update README.md
2023-08-14 19:48:02 +08:00
hzg0601
c81e63eeee
解决多卡启动问题
2023-08-14 19:42:21 +08:00
Zhi-guo Huang
811c308ef4
1. update readme;2. 解决多卡启动问题;3. 更新lora加载方式说明 ( #1079 )
...
* fix chat and knowledge_base_chat
* 更新多卡部署
* update readme
* update api and webui:
1. add download_doc to api
2. return local path or http url in kowledge_base_chat depends on
no_remote_api
3. change assistant avater in webui
* 解决多卡启动问题
* fix chat and knowledge_base_chat
* 更新readme的lora加载方式
* update readme
* 更新readme
---------
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-08-14 19:42:16 +08:00
hzg0601
d652a28023
update readme
2023-08-14 19:32:28 +08:00
hzg0601
9fb38727fb
更新readme
2023-08-14 19:32:28 +08:00
hzg0601
c591dd7836
update readme
2023-08-14 19:32:28 +08:00
liunux4odoo
8477adfa33
update api and webui:
...
1. add download_doc to api
2. return local path or http url in kowledge_base_chat depends on
no_remote_api
3. change assistant avater in webui
2023-08-14 19:32:28 +08:00
liunux4odoo
087bb37e08
fix chat and knowledge_base_chat
2023-08-14 19:32:28 +08:00
hzg0601
23421204dc
update readme
2023-08-14 19:32:22 +08:00
hzg0601
c320ed60ba
update readme
2023-08-14 19:17:34 +08:00
imClumsyPanda
3cbd4d24fa
update README.md
2023-08-14 19:17:34 +08:00
imClumsyPanda
f7c82c13da
update model_config.py.example
2023-08-14 19:17:34 +08:00
imClumsyPanda
793d972174
Update README.md
2023-08-14 19:17:34 +08:00
imClumsyPanda
d2440d3640
update README.md
2023-08-14 19:11:01 +08:00
liunux4odoo
ec984205ae
fix knowledge base management:
...
1. docs in database were note deleted when clear vector store
2. diable buttons when local doc file not exist.
2023-08-14 19:09:02 +08:00
imClumsyPanda
fc56b07f31
update model_config.py.example
2023-08-14 18:53:22 +08:00
hzg0601
bb8331384f
更新readme
2023-08-14 17:36:10 +08:00
Zhi-guo Huang
71b528a2d1
1. update readme;2. 解决多卡启动问题;3. 更新lora加载方式说明 ( #1079 )
...
* fix chat and knowledge_base_chat
* 更新多卡部署
* update readme
* update api and webui:
1. add download_doc to api
2. return local path or http url in kowledge_base_chat depends on
no_remote_api
3. change assistant avater in webui
* 解决多卡启动问题
* fix chat and knowledge_base_chat
* 更新readme的lora加载方式
* update readme
* 更新readme
---------
Co-authored-by: liunux4odoo <liunu@qq.com>
2023-08-14 17:35:51 +08:00
hzg0601
e730172a5a
update readme
2023-08-14 17:18:26 +08:00
hzg0601
c4142e24c5
更新readme的lora加载方式
2023-08-14 17:15:07 +08:00
imClumsyPanda
d14d80d759
Update README.md
2023-08-14 17:06:59 +08:00
hzg0601
8b18cf2a5e
git rebase and pull
2023-08-14 16:48:35 +08:00
liunux4odoo
0704eabe23
fix chat and knowledge_base_chat
2023-08-14 16:46:26 +08:00
hzg0601
90c92f8c93
解决多卡启动问题
2023-08-14 16:43:01 +08:00
liunux4odoo
cc08e2cb96
update api and webui:
...
1. add download_doc to api
2. return local path or http url in kowledge_base_chat depends on
no_remote_api
3. change assistant avater in webui
2023-08-14 11:46:36 +08:00
hzg0601
0d6a9cf8f3
Merge branch 'master' into dev
2023-08-14 11:39:12 +08:00
hzg0601
986cb9179c
update readme
2023-08-14 11:36:58 +08:00
hzg0601
0cea9ad3da
Merge branch 'master' of https://github.com/chatchat-space/Langchain-Chatchat
2023-08-14 11:25:11 +08:00
hzg0601
6590ca32db
更新多卡部署
2023-08-14 11:24:52 +08:00
imClumsyPanda
932ca4e4c5
Update README.md
2023-08-14 10:42:05 +08:00
imClumsyPanda
c34215465d
Add files via upload
2023-08-14 10:41:35 +08:00
liunux4odoo
126bd51232
fix chat and knowledge_base_chat
2023-08-14 10:35:47 +08:00
imClumsyPanda
84e4981cc1
Update README.md
2023-08-14 07:44:12 +08:00
jinke
a61c3cb465
update docker image desc
...
修改docker image镜像描述。
2023-08-14 01:07:52 +08:00
jinke
586d3eda53
add docker image
...
添加docker镜像链接及描述。
2023-08-14 01:02:38 +08:00
imClumsyPanda
837c4dbf25
update README.md
2023-08-13 23:55:51 +08:00
imClumsyPanda
ac4d22a89f
update README.md
2023-08-13 23:10:38 +08:00
imClumsyPanda
b543f49278
update webui design
2023-08-13 22:25:01 +08:00
imClumsyPanda
77364c046e
withdraw conversation management func
2023-08-13 17:53:59 +08:00
imClumsyPanda
1b07648238
fix bug in webui search_engine_chat
2023-08-13 16:20:53 +08:00
liunux4odoo
5df3de8dd0
fix webui: keep chat session sequence when delete session, again
2023-08-13 14:58:14 +08:00
liunux4odoo
6359f5e883
fix webui: keep chat session sequence when delete session
2023-08-13 13:13:30 +08:00
liunux4odoo
9974bf33a0
fix webui: switch to created chat session automatically
2023-08-13 12:59:06 +08:00
imClumsyPanda
353d9fc72b
update init_database.py
2023-08-13 10:25:02 +08:00
liunux4odoo
b59b34eaf7
fix webui: switch to created chat session automatically
2023-08-12 22:58:13 +08:00
liunux4odoo
1535059d2c
fix webui: create and rename chat session
2023-08-12 22:30:21 +08:00
liunux4odoo
9514ec1944
fix webui: rename new chat session error
2023-08-12 20:17:36 +08:00
liunux4odoo
e4c541ed0e
update webui: switch to new chat after created it
2023-08-12 17:17:04 +08:00
imClumsyPanda
e196ef0b17
update docs
2023-08-12 17:04:38 +08:00
imClumsyPanda
bbfb599412
update master
2023-08-12 16:46:42 +08:00
imClumsyPanda
f539766e8f
update README.md
2023-08-12 16:44:42 +08:00
imClumsyPanda
df6ef705b0
update README.md
2023-08-12 16:36:14 +08:00
imClumsyPanda
90eb45ac46
merge dev_fastchat
2023-08-12 16:31:20 +08:00
imClumsyPanda
18fe1b97f9
merge dev_fastchat
2023-08-12 16:30:07 +08:00
imClumsyPanda
4d4aabd8f7
update README.md
2023-08-12 16:24:11 +08:00
imClumsyPanda
d081277618
update README.md
2023-08-12 16:21:55 +08:00
imClumsyPanda
57a9f04e8f
update README.md
2023-08-12 16:07:47 +08:00
imClumsyPanda
70055d7f3a
update README.md
2023-08-12 16:04:33 +08:00
imClumsyPanda
79d87d3344
update webui.py
2023-08-12 15:44:46 +08:00
imClumsyPanda
b1d48317e1
update README.md
2023-08-12 15:20:36 +08:00
imClumsyPanda
f4a42b8ccb
update webui.py and README.md
2023-08-12 15:02:14 +08:00
imClumsyPanda
2ad33e010d
update webui.py and README.md
2023-08-12 14:08:21 +08:00
imClumsyPanda
8c289e4974
update README.md
2023-08-12 11:21:29 +08:00
imClumsyPanda
e65458a506
update requirements.txt
2023-08-12 10:44:04 +08:00
imClumsyPanda
90d385cb92
update webui.dialogue layout
2023-08-12 02:30:50 +08:00
imClumsyPanda
844b15a6f7
update webui.knowledge_base layout
2023-08-12 01:26:17 +08:00
imClumsyPanda
afc6aa968d
update webui layout
2023-08-11 23:40:41 +08:00
liunux4odoo
2bb9a7949f
fix: delete knowledge base error
2023-08-11 23:35:27 +08:00
liunux4odoo
802ddb7b55
update docs
2023-08-11 23:30:07 +08:00
liunux4odoo
9add46ebbd
add recreate vector store to knowledge base mamagement ui
2023-08-11 14:11:34 +08:00
liunux4odoo
2a57f49d80
update knowledge base management ui.
...
remove numpy/pandas from requirements, move them to webui requirements
2023-08-11 13:53:20 +08:00
imClumsyPanda
2a44bd870e
Dev ( #1046 )
...
* 增加lora检查点加载成功提示
* 修复baichuan_llm引起的bug
* update model_config
---------
Co-authored-by: hzg0601 <hzg0601@163.com>
2023-08-11 10:50:21 +08:00
liunux4odoo
a08fe994c2
更新API与ApiReuest:
...
1. 重新整理webui_pages/utils与server/knowledge_base间的工具依赖
2.
将delete_knowledge_base与delete_doc接口从delete改为post.delete不支持body参数
3. 修复update_doc
4. 修复部分bug
2023-08-11 08:45:26 +08:00
liunux4odoo
a261fda20b
add tools to migrate knowledge base
2023-08-11 08:33:05 +08:00
imClumsyPanda
3c44cf65cd
update webui layout
2023-08-10 23:51:10 +08:00
imClumsyPanda
ef098111dc
update webui and utils
2023-08-10 23:04:05 +08:00
imClumsyPanda
8b1c5bcf9e
update webui.py
2023-08-10 22:32:56 +08:00
imClumsyPanda
0d1d9c5ed7
update img
2023-08-10 22:02:31 +08:00
Wufisher
28a2295f73
线性简单实现了:vecorstores/MyFAISS.py TODO: 增加是否属于同一文档的判断 ( #945 )
2023-08-10 21:59:47 +08:00
Vincent chen
62047c880e
Adding an implementaion for involving with accessing Baichuan-13B-Chat ( #1005 )
2023-08-10 21:55:35 +08:00
Chiquitita
22c6192561
Update MyFAISS.py ( #1041 )
...
* Update MyFAISS.py
使用remove_ids从faiss索引中删除向量时,索引中剩余的待索引向量idx仍然是连续的 0, 3, 4 - > 0, 1, 2
#为了保证index_to_docstore_id中的idx和faiss索引中的idx相一致,需要将index_to_docstore_id中的idx重排序
* Update MyFAISS.py
2023-08-10 21:54:42 +08:00
imClumsyPanda
9fc467274f
update requirements.txt
2023-08-10 21:53:09 +08:00
imClumsyPanda
8d463a31fd
update import pkgs and format
2023-08-10 21:50:38 +08:00
imClumsyPanda
8a4d9168fa
update import pkgs and format
2023-08-10 21:26:05 +08:00
liunux4odoo
22c8f277bf
update readme: describe requirements to install
2023-08-10 17:10:40 +08:00
liunux4odoo
18e7e7307b
patch fastapi-offline to use local swagger-ui assests
2023-08-10 17:00:39 +08:00
liunux4odoo
b733a47902
split requirements to 2 parts: basic with api; webui
2023-08-10 15:51:22 +08:00
Laurence Rotolo
3db73d458b
Merge pull request #1039 from nanayashiki1215/IFlytek/IFlytekVoice
...
添加语音模块
2023-08-10 15:43:54 +08:00
liunux4odoo
0364215987
Merge branch 'pr1037_pg_vs' into dev_fastchat
2023-08-10 15:07:58 +08:00
liunux4odoo
17ddee38a4
fix conflict between def_fastchat and pr1037
2023-08-10 15:02:41 +08:00
hzg0601
a59ab911a7
update readme
2023-08-10 14:49:50 +08:00
hzg0601
9525915a85
update llm_api_launch,llm_api_shutdown
2023-08-10 14:43:18 +08:00
liunux4odoo
fd247f4657
Merge branch 'dev_fastchat' into pr1037_pg_vs
2023-08-10 14:21:37 +08:00
liunux4odoo
9ed91f0e8a
automatically init vector store info to database when run api.py & webui.py
2023-08-10 14:12:02 +08:00
Pan
4fd07c36c3
添加讯飞语音识别(流式版)与语音合成(流式版)模块,以及在设置中添加语音开启、关闭相关配置选项
2023-08-10 13:46:33 +08:00
liunux4odoo
f5024245a7
make api.py and webui.py working offline
2023-08-10 13:33:40 +08:00
liunux4odoo
7a57f67587
fix: bug when delete chat session
2023-08-10 13:06:30 +08:00
liunux4odoo
d89fcb3b2e
update knowledge base management page:
...
1. move get_kb_details & get_doc_details to utils.py
2. adjust aggrid columns width.
2023-08-10 11:37:14 +08:00
zqt
d4f728dfa2
添加向量数据库pg支持,和向量库docker-compose.ym环境文件
2023-08-10 11:16:52 +08:00
hzg0601
f7b2c8cd04
更新readme
2023-08-10 10:09:44 +08:00
hzg0601
73393d781a
更新readme,增加启动多个llm服务的说明;增加停止llm服务的说明
2023-08-10 09:52:34 +08:00
imClumsyPanda
b1361be6df
Update README.md
2023-08-10 09:45:41 +08:00
imClumsyPanda
b9da9cdcb5
Add files via upload
2023-08-10 09:45:15 +08:00
hzg0601
6c2b2b7ba2
测试llm_api_shutdown.py,通过
2023-08-10 09:38:45 +08:00
imClumsyPanda
6019671080
Update README.md
2023-08-10 08:15:27 +08:00
imClumsyPanda
a3e724281e
Update README.md
2023-08-10 08:14:29 +08:00
liunux4odoo
53fef3a7e9
add streamlit-aggrid to requirements
2023-08-10 07:50:24 +08:00
imClumsyPanda
8df00d0b04
add SCORE_THRESHOLD to faiss and milvus kb service
2023-08-10 00:36:59 +08:00
liunux4odoo
1a112c6908
update fastch_chat: disable streaming in swagger besides streaming in ApiRequest
2023-08-09 23:48:41 +08:00
imClumsyPanda
d67e354276
update model_config.py.example and README.md
2023-08-09 23:45:27 +08:00
imClumsyPanda
dd26f552db
update model_config.py.example
2023-08-09 23:39:05 +08:00
imClumsyPanda
02b9d57072
update textsplitter and pdfloader
2023-08-09 23:36:43 +08:00
liunux4odoo
222689ed5b
update kb and search chat: disable streaming in swagger besides streaming in ApiRequest
2023-08-09 23:35:36 +08:00
hzg0601
ca49f9d095
Merge branch 'dev_fastchat' of https://github.com/chatchat-space/langchain-ChatGLM into dev_fastchat
2023-08-09 23:24:44 +08:00
hzg0601
be7d31416c
update model_config.py.example
2023-08-09 23:24:17 +08:00
imClumsyPanda
168323ab41
update README.md
2023-08-09 23:21:02 +08:00
hzg0601
66ff913bb4
Merge branch 'dev_fastchat' of https://github.com/chatchat-space/langchain-ChatGLM into dev_fastchat
2023-08-09 23:18:54 +08:00
hzg0601
3e9d088cd9
update server
2023-08-09 23:18:44 +08:00
hzg0601
34bb681db1
删除shell脚本
2023-08-09 23:17:51 +08:00
hzg0601
8a34c3f163
增加停止服务的python脚本
2023-08-09 23:16:02 +08:00
imClumsyPanda
24a280ce8c
re-add zh_title_enhance.py
2023-08-09 23:09:24 +08:00
imClumsyPanda
1b70fb5f9b
update faiss_kb_service.py
2023-08-09 22:57:36 +08:00
liunux4odoo
db29a2fea7
update knowledge_base_chat and search_engine_chat: yield chinese correctly
2023-08-09 22:54:37 +08:00
liunux4odoo
ba3335efb8
update llm_api: move fastchat logs to LOG_PATH
2023-08-09 22:43:45 +08:00
imClumsyPanda
0a95c32f06
update README.md
2023-08-09 22:20:34 +08:00
imClumsyPanda
22260af16f
update README.md and INSTALL.md
2023-08-09 22:04:28 +08:00
liunux4odoo
450b23c4f2
update knowledge base management api and ui
2023-08-09 22:00:33 +08:00
liunux4odoo
997f8b2e3f
update knowledge base api:
...
1. list_kbs_from_db return all kbs by default instead of return kbs with
file_count > 0 only.
2. KBServiceFactory.get_service_by_name could return a FaissKBService
that not in the db
2023-08-09 21:57:40 +08:00
liunux4odoo
323fc13d4c
make parameter examples available in openapi docs
2023-08-09 18:15:14 +08:00
liunux4odoo
c7b91bfaf1
update api/kb_doc_api and knowledge base management ui:
...
1. add update_doc to api which can udpate vector store from existed
content file
2. add parameter `delete_content` to delete_doc api. user can decide
whether delete local content file when delete doc.
3. fix bug in ApiReqeust.upload_doc
4. support listing docs existed in local folder bu not in db
2023-08-09 16:52:04 +08:00
liunux4odoo
25280e0cea
update webui: use history_len as pairs of conversation
2023-08-09 14:11:10 +08:00
liunux4odoo
4da7c04859
fix: parse history parameter to correct type
2023-08-09 12:09:45 +08:00
liunux4odoo
973d3097e7
fix webui_pages/utils.py: support history parameter for chat_chat
2023-08-09 11:00:22 +08:00
liunux4odoo
9883341924
update server.chat.*: set default value [] to history parameter.
2023-08-09 10:48:37 +08:00
liunux4odoo
b98f5fd0b9
update knowledge base kbservice and api:
...
1. make huggingfaceembeddings hashable
2. unify embeddings' loading method for all kbservie
3. make ApiRequest skip empty content when streaming json to avoid dict
KeyError
2023-08-09 10:46:01 +08:00
liunux4odoo
ec76adc81d
update knowledge base management ui
2023-08-08 23:58:44 +08:00
liunux4odoo
532ed81ecf
add functions to get kb and doc details from db
2023-08-08 23:57:39 +08:00
imClumsyPanda
717ddf4d10
add history to chat apis
2023-08-08 23:56:27 +08:00
imClumsyPanda
c17572b6a6
add history to chat apis
2023-08-08 23:55:27 +08:00
imClumsyPanda
2d49746a8d
add history to chat apis
2023-08-08 23:54:51 +08:00
imClumsyPanda
c8b6d53ede
add llmchain_with_history.py as example
2023-08-08 22:15:16 +08:00
liunux4odoo
135af5f3ff
update knowledge base db orm:
...
1. set default values for file_count, file_version, create_time.
2. fix bug: add_doc_to_db
3. make add_kb_to_db more flexiable with existing kb
2023-08-08 21:47:20 +08:00
liunux4odoo
2b0f8caa62
improve recreate_vector_store:
...
1. allow empty knowledge base
2. skip unspported files instead of exception
2023-08-08 17:59:41 +08:00
liunux4odoo
e918244159
move KBServiceFactory to server.knowledge_base.kb_service.base
2023-08-08 17:41:58 +08:00
liunux4odoo
444e1afad5
remove server/knowledge_base/knowledge_file.py
2023-08-08 16:51:37 +08:00
liunux4odoo
c4a3995310
move commonto tools from kbservice.base to server.knowledge_base.utils
2023-08-08 16:40:18 +08:00
liunux4odoo
584e3a9234
remove server/knowledge_base/knowledge_base_factory.py
2023-08-08 16:21:00 +08:00
liunux4odoo
7e07f0bbf4
move configs to configs.model_config
2023-08-08 15:56:32 +08:00
zqt
79be21521a
补充SQLAlchemy==2.0.19版本
2023-08-08 14:29:08 +08:00
zqt
b61e0772c9
使用orm操作数据库
2023-08-08 14:25:55 +08:00
zqt
41fd1acc9c
Merge remote-tracking branch 'origin/dev_fastchat' into dev_fastchat
...
# Conflicts:
# server/knowledge_base/kb_service/default_kb_service.py
# server/knowledge_base/kb_service/milvus_kb_service.py
# server/knowledge_base/knowledge_base_factory.py
2023-08-08 14:06:13 +08:00
hzg0601
82494aec00
Merge branch 'dev_fastchat' of github.com:chatchat-space/langchain-ChatGLM into dev_fastchat
2023-08-08 13:39:31 +08:00
hzg0601
360bd0a559
update llm_api_sh.py
2023-08-08 13:39:19 +08:00
liunux4odoo
0746272525
remove server/knowledge_base/knowledge_base.py
2023-08-08 13:36:20 +08:00
liunux4odoo
40b6d1f178
add python-magic-bin to requirements on windows. or document loader failed at from unstructured.partion.auto import partion on windows
2023-08-08 12:03:33 +08:00
glide-the
de8db40f4b
BaseChatOpenAIChain,支持基础的ChatOpenAI对话的Chain接入
2023-08-07 23:05:54 +08:00
glide-the
823eb06c5d
BaseChatOpenAIChain,支持基础的ChatOpenAI对话的Chain接入
2023-08-07 22:57:13 +08:00
liunux4odoo
08493bffbb
add a basic knowledge base management ui.
2023-08-07 21:00:55 +08:00
imClumsyPanda
035a199c32
update kb_server.base
2023-08-07 20:48:06 +08:00
imClumsyPanda
c981cdb042
update model_config.py.example
2023-08-07 20:41:44 +08:00
liunux4odoo
44c713ef98
use KBServiceFactory to replace all the KnowledgeBase.
...
make KBServiceFactory support embed_model parameter.
rewrite api: recreate_vector_store.
fix some bugs.
2023-08-07 20:37:16 +08:00
zqt
e666e0d0be
Merge remote-tracking branch 'origin/dev_fastchat' into dev_fastchat
2023-08-07 17:07:19 +08:00
zqt996
0f46185cfb
添加Milvus库 ( #1011 )
2023-08-07 16:56:57 +08:00
zqt
08cf2915bb
添加Milvus库
2023-08-07 16:42:49 +08:00
zqt
72951d95fb
添加milvus库支持
2023-08-07 16:32:34 +08:00
imClumsyPanda
df9b539f74
Update README.md
2023-08-07 10:40:35 +08:00
imClumsyPanda
2a17f7ff10
Add files via upload
2023-08-07 10:40:11 +08:00
imClumsyPanda
18d31f5116
add KBService and KBServiceFactory class
2023-08-06 23:44:02 +08:00
glide-the
06af3f4c5e
BaseChatOpenAIChain,支持基础的ChatOpenAI对话的Chain接入
2023-08-06 22:57:57 +08:00
imClumsyPanda
b91d96ab0c
update kb_doc_api.py
2023-08-06 18:32:10 +08:00
imClumsyPanda
d7039d05a1
update MyFAISS.py
2023-08-06 16:49:52 +08:00
YikunHan
0ad63aee63
Update FAQ.md ( #1006 )
2023-08-06 16:39:58 +08:00
imClumsyPanda
a447529c2e
update kb_doc_api.py
2023-08-05 23:35:20 +08:00
imClumsyPanda
8773149a3e
update api.py
2023-08-05 23:12:17 +08:00
imClumsyPanda
7f89efee4b
fix kb_doc_api.py
2023-08-05 23:01:56 +08:00
imClumsyPanda
3f045cedb9
1. add add_doc and list_docs to KnowledgeBase class
...
2. add DB_ROOT_PATH to model_config.py.example
2023-08-05 22:57:19 +08:00
imClumsyPanda
313e590961
update DocumentLoader in knowledge_file.py
2023-08-05 21:51:07 +08:00
imClumsyPanda
f68e432570
update table_name and column_name in SQL
2023-08-05 21:02:14 +08:00
imClumsyPanda
cd0f2a2c41
update class method of KnowledgeBase and KnowledgeFile
2023-08-05 20:52:14 +08:00
imClumsyPanda
14a5de6a29
update class method of KnowledgeBase and KnowledgeFile
2023-08-05 13:51:05 +08:00
imClumsyPanda
7beeaacea6
update class method of KnowledgeBase and KnowledgeFile
2023-08-05 13:48:55 +08:00
imClumsyPanda
e8a88f174d
update class method of KnowledgeBase and KnowledgeFile
2023-08-05 13:48:30 +08:00
imClumsyPanda
206261cd0c
update class method of KnowledgeBase and KnowledgeFile
2023-08-05 13:46:00 +08:00
imClumsyPanda
6c7adfbaeb
change kb_api functions with KnowledgeBase class method
2023-08-05 03:15:41 +08:00
imClumsyPanda
7e1472a95b
add KnowledgeBase class
2023-08-05 00:10:10 +08:00
imClumsyPanda
590367a5b5
add KnowledgeFile class
2023-08-04 23:54:26 +08:00
imClumsyPanda
515dcc1b5f
update MyFAISS.py and cli_demo.py
2023-08-04 23:27:13 +08:00
imClumsyPanda
c987a95c92
Merge remote-tracking branch 'origin/master'
2023-08-04 23:26:50 +08:00
imClumsyPanda
2eb35291b2
update MyFAISS.py and cli_demo.py
2023-08-04 23:26:42 +08:00
imClumsyPanda
775d46fecf
format update in knowledge_base/utils.py
2023-08-04 23:14:43 +08:00
imClumsyPanda
bc3ee83910
update kb_doc_api.py
2023-08-04 22:22:48 +08:00
liunux4odoo
5d1a0ec15d
add recreate_vector_store to kb_doc_api, and the router in api.py.
2023-08-04 20:26:14 +08:00
liunux4odoo
46c7d8d169
allow kb_doc_api.upload_doc to override existed file by parameter.
...
update_doc is not needed.
2023-08-04 15:53:44 +08:00
imClumsyPanda
b4f80ca370
update server.knowledge_base.utils
2023-08-04 15:32:42 +08:00
imClumsyPanda
7bfbe18011
update requirements.txt and kb_doc_api.py
2023-08-04 15:12:14 +08:00
liunux4odoo
3318cef751
update streamlit ui: support latest knowledge base and search engine
...
chat api; export messages to markdown.
2023-08-04 12:52:58 +08:00
liunux4odoo
27d49be706
make apirequest support streaming dict
2023-08-04 12:49:39 +08:00
liunux4odoo
c4994e85df
fix: knowledge_base_chat and search_engine_chat should stream json text
...
instead of dict. client should use json.loads.
2023-08-04 12:12:13 +08:00
liunux4odoo
88682c87ff
优化server下知识库相关模块的结构:将知识库相关操作从knowledge_base_chat移动到knowledge_base.utils;优化kb_doc_api中embeddings加载。
2023-08-04 10:16:30 +08:00
liunux4odoo
9a18218293
add new config variable to config example
2023-08-04 09:16:28 +08:00
imClumsyPanda
82aa805bf3
update requirements.txt
2023-08-03 23:42:55 +08:00
imClumsyPanda
329c24ee73
1. change bing_search_chat and duckduckgo_search_chat into search_engine_chat
...
2. add knowledge_base not found to knowledge_base_chat and add search_engine not found to search_engine_chat
2023-08-03 18:22:36 +08:00
imClumsyPanda
b62ea6bd2a
add top-k to search_chat apis and add top-k params in model_config
2023-08-03 17:06:43 +08:00
liunux4odoo
5c804aac75
make api and webui support top_k paramter
2023-08-03 15:47:53 +08:00
liunux4odoo
df61f31c8e
修改knowledge_base_chat实现:利用缓存避免每次请求重新加载向量库;增加top_k参数。
2023-08-03 15:22:46 +08:00
liunux4odoo
e1698ce12e
webui中增加多会话功能
2023-08-03 15:06:10 +08:00
hzg0601
fdbff8a91f
Merge branch 'dev_fastchat' of github.com:chatchat-space/langchain-ChatGLM into dev_fastchat
2023-08-03 14:39:14 +08:00
hzg0601
6f93a27e53
更新llm_api_sh.py调用说明
2023-08-03 14:39:00 +08:00
liunux4odoo
4651b50176
WEB UI中对话功能已完成。目前很多参数还不支持,待API接口完善后再加入。
2023-08-03 13:41:31 +08:00
liunux4odoo
dc74bdab41
将httpx.stream返回结果转化为普通生成器,使得httpx api请求与直接调用server.chat.xx返回相同的结果。
2023-08-03 12:52:49 +08:00
liunux4odoo
f7d465b7d4
bug fix
2023-08-03 12:11:18 +08:00
liunux4odoo
3c2b8a85d6
add knowledge base api methods
2023-08-03 10:49:57 +08:00
liunux4odoo
d36d801a58
add api request methods for all chat apis
2023-08-03 09:33:24 +08:00
imClumsyPanda
904eaa58c4
Update README.md
2023-08-02 11:01:02 +08:00
imClumsyPanda
6b03914446
Add files via upload
2023-08-02 11:00:38 +08:00
hzg0601
d0fd6253a3
update llm_api_sh
2023-08-02 09:19:58 +08:00
hzg0601
1d1a8e9339
Merge branch 'dev_fastchat' of github.com:chatchat-space/langchain-ChatGLM into dev_fastchat
2023-08-01 22:07:12 +08:00
hzg0601
ab7a76f380
update llm_api_sh.py and model_config.example
2023-08-01 22:07:05 +08:00
imClumsyPanda
e4fed93989
update format in api.py
2023-08-01 21:53:19 +08:00
hzg0601
18a94fcf45
Merge branch 'dev_fastchat' of github.com:chatchat-space/langchain-ChatGLM into dev_fastchat
2023-08-01 18:02:52 +08:00
hzg0601
15e67a4d3e
1.*在config里将所有fastchat的命令行参数加入;2.*加入启动和停止fastchat的shell脚本;3. **增加了通过命令行启动所有fastchat服务的python脚本llm_api_sh.py;4. 修改了默认的config日志格式
2023-08-01 17:59:20 +08:00
imClumsyPanda
7c01a2a253
add bing_search_chat.py and duckduckgo_search_chat.py
2023-08-01 16:39:17 +08:00
imClumsyPanda
5ce2484af0
update webui.py
2023-08-01 15:08:19 +08:00
imClumsyPanda
7d79b676d5
add model_config.py.example instead of model_config.py
2023-08-01 14:55:00 +08:00
imClumsyPanda
8261deb99d
fix model_config path
2023-08-01 14:49:49 +08:00
imClumsyPanda
bcfd3f5af5
add webui_pages
2023-08-01 14:47:38 +08:00
imClumsyPanda
c8a75ab11f
update llm_api.py and webui.py
2023-08-01 14:33:18 +08:00
liunux4odoo
2c5b6bb0ad
streamlit ui 实现LLM流式对话
2023-08-01 14:18:30 +08:00
liunux4odoo
a1a7484ef4
增加webui_utils.py,包括制作webui通用的工具,方便以后开发其他webui
2023-08-01 14:15:42 +08:00
imClumsyPanda
9f4567865c
add chatglm2-6b-32k and make m3e default embedding model
2023-08-01 14:12:28 +08:00
imClumsyPanda
00cb7bf598
add support for chatglm2-6b-32k
2023-08-01 10:58:05 +08:00
imClumsyPanda
dfe7bee243
Merge branch 'master' into dev
2023-07-31 19:54:43 +08:00
liunux4odoo
9e2b411b01
cuda error with multiprocessing, change model_worker to main process
2023-07-31 11:18:57 +08:00
hzg0601
47dfb6cd8b
udpate llm_api
2023-07-31 11:00:33 +08:00
liunux4odoo
946f10e1f2
split api_start to create_app & run_api. user can run api with uvicorn in console: uvicorn server.api:app --port 7861
2023-07-31 10:05:19 +08:00
liunux4odoo
463659f0ba
llm_api升级到fschat==0.2.20,支持百川模型
2023-07-30 23:16:47 +08:00
liunux4odoo
51ea717606
Merge branch 'dev_fastchat_me' into dev_fastchat
2023-07-30 09:01:31 +08:00
liunux4odoo
179c2a9a92
修改server.chat.openai_chat中的参数定义,使其与openai中/v1/chat/completions接口的入参保持一致,并按照model_config提供默认值。
...
openai_chat中的接口还要修改:openai根据参数stream有不同的返回值,本接口要与其对应。
2023-07-30 08:56:49 +08:00
imClumsyPanda
05ccc0346e
update test code
2023-07-30 00:48:07 +08:00
imClumsyPanda
41444fd4b5
update requirements.txt and llm_api.py
2023-07-30 00:24:34 +08:00
imClumsyPanda
d4ffc70d96
update requirements.txt
2023-07-29 23:46:02 +08:00
liunux4odoo
1a7271e966
fix: model_worker need global variable: args
2023-07-29 23:22:25 +08:00
liunux4odoo
c880412300
use multiprocessing to run fastchat server
2023-07-29 23:01:24 +08:00
liunux4odoo
829ced398b
make api.py import model_config coreectlly
2023-07-29 23:00:50 +08:00
Zhi-guo Huang
fef931d2b8
Merge pull request #859 from cylee0909/chatglm2cpp
...
support chatglm2cpp
2023-07-28 22:24:51 +08:00
liunux4odoo
8b1cf7effd
fix: os.environ['OPENAI_API_KEY'] exception when no environment variable set
2023-07-28 16:51:58 +08:00
liunux4odoo
70c6870776
增加api_one.py,把fastchat
...
3个服务端整合在一起。后面考虑把api.py也整合进来。
3个进程变成1个进程可能带来少许性能损失,但对于个人用户降低了部署难度。
2023-07-28 16:41:45 +08:00
hzg0601
97ee4686a1
更新会议记录
2023-07-28 16:16:59 +08:00
hzg0601
154cad1b45
会议记录
2023-07-28 16:12:57 +08:00
cylee
4235270a32
Merge branch 'dev' into chatglm2cpp
2023-07-28 14:41:14 +08:00
imClumsyPanda
e95996a9b9
update requirements.txt
2023-07-28 06:59:16 +08:00
imClumsyPanda
59442dcd4a
update webui.py
2023-07-28 06:58:34 +08:00
imClumsyPanda
dd0f90b4a4
readd .github
2023-07-28 06:54:54 +08:00
hzg0601
161c9e6c50
fix typo
2023-07-28 03:59:29 +08:00
imClumsyPanda
620ccb3bdc
update model_config.py
2023-07-27 23:28:33 +08:00
hzg0601
9326c63a62
Merge branch 'dev' of https://github.com/imClumsyPanda/langchain-ChatGLM into dev
2023-07-27 23:27:53 +08:00
imClumsyPanda
dcf49a59ef
v0.2.0 first commit
2023-07-27 23:22:07 +08:00
hzg0601
cd91290bfb
删除reqirements的中文
2023-07-27 14:28:58 +08:00
hzg0601
c431bee941
删除requirements的中文
2023-07-27 14:27:11 +08:00
hzg0601
310a865ccd
删除requirements的中文
2023-07-27 14:26:50 +08:00
imClumsyPanda
f7a32f9248
Update README.md
2023-07-27 09:23:31 +08:00
imClumsyPanda
36a1c72573
Add files via upload
2023-07-27 09:23:07 +08:00
liunux4odoo
8732dcc1c4
恢复被PR659覆盖的model_config
2023-07-27 08:42:17 +08:00
imClumsyPanda
01a54d1042
add chatglm-fitness-RLHF made by @BoFan-tunning to llm_model_dict in model_config.py
2023-07-26 21:41:27 +08:00
imClumsyPanda
0a062ba07b
update img
2023-07-26 21:37:22 +08:00
hzg0601
34a2af118b
update model_config.py
2023-07-26 18:04:35 +08:00
hzg0601
e8ff31be1f
1.使api.py里可以使用args.py的参数;2.兼容args.py和model_config.py的控制方式;3.更新fastchat调用模型名的说明
2023-07-26 17:46:02 +08:00
hzg0601
58a5de92a5
1.更改加载lora的方式;2.允许api.py调用args.py的命令行;3. FastChat路径提示
2023-07-26 17:05:37 +08:00
liunux4odoo
5f74f70515
fix: streamlit ui在上传多个文件到知识库时出错
2023-07-25 22:36:49 +08:00
YuhaoWU
466f0c9c97
安装教程conda create新增默认的/envs下面,而不只是只能要额外指定路径 用-p ( #482 )
...
* Update 安装教程中conda虚拟环境的创建与激活
2023-07-25 16:58:25 +08:00
liunux4odoo
18d453cc18
merge PR 659: make chat api support streaming
2023-07-25 13:23:16 +08:00
imClumsyPanda
db80358df8
Update model_config.py
...
fix openai api url
2023-07-25 11:16:02 +08:00
liunux4odoo
f21fea41b4
bug fix:
...
api.py中,所有chat接口的参数history,其元素应支持None,方便其他框架调用。
否则以history=[[None,'some thing']]调用时会返回422错误。
2023-07-25 08:53:28 +08:00
Zhi-guo Huang
1f8924eeac
Merge branch 'dev' into chatglm2cpp
2023-07-24 14:44:00 +08:00
lichongyang
62ba7679fe
support chatglm2cpp
2023-07-24 14:41:51 +08:00
imClumsyPanda
3f627af745
Update README.md
2023-07-24 08:32:21 +08:00
imClumsyPanda
b586ee6e1f
Add files via upload
2023-07-24 08:31:54 +08:00
imClumsyPanda
fdd353e48a
Merge branch 'master' into dev
2023-07-23 18:40:04 +08:00
imClumsyPanda
ff5d2ecc1e
update img
2023-07-23 18:39:49 +08:00
imClumsyPanda
0f43845a98
merge master
2023-07-23 18:38:51 +08:00
hzg0601
1e1075b98a
Merge branch 'dev' of github.com:imClumsyPanda/langchain-ChatGLM into dev
2023-07-21 23:13:11 +08:00
hzg0601
b2278f2f25
更改api.py的chat函数的history的类型为Optional,修复chat接口不可调用的问题
2023-07-21 23:12:28 +08:00
liunux4odoo
a6f42e7c8e
fix iss#889:
...
when init_model on startup, set llm model's history_len to LLM_HISTORY_LEN from model_config.
2023-07-21 23:07:50 +08:00
Ma Zhiming
3f76cb5f47
[Fix] INSTALL.md ( #907 )
...
* Update INSTALL.md
* Update INSTALL.md
2023-07-21 16:42:53 +08:00
hzg0601
3b6819f091
更改默认的LLM_MODEL
2023-07-21 15:35:17 +08:00
hzg0601
6ec1e56e03
Merge branch 'dev' of github.com:imClumsyPanda/langchain-ChatGLM into dev
2023-07-21 15:29:53 +08:00
Zhi-guo Huang
acee2d5ad2
Merge pull request #905 from chinainfant/dev
...
解决加载ptuning检查点失败的问题
2023-07-21 15:32:37 +08:00
chinainfant
c1c2ed1943
Update loader.py 解决加载ptuning报错的问题
2023-07-21 15:30:19 +08:00
hzg0601
32122ee225
update gitignore
2023-07-21 15:29:36 +08:00
chinainfant
ec2bf9757c
Update args.py 将use-ptuning-v2的命名行改为action='store_true'
2023-07-21 15:28:11 +08:00
Zhi-guo Huang
7d37dc876e
Merge pull request #904 from bones-zhu/dev
...
1 修复model_config.py的type;2 修改默认的LLM_model;3. 移除chatglm_llm.py的无用模块
2023-07-21 15:14:33 +08:00
bones-zhu
5479a74789
Update chatglm_llm.py remove unused library
2023-07-21 15:11:51 +08:00
bones-zhu
e2eaefc999
Update model_config.py 修改默认的LLM_MODEL
2023-07-21 15:10:13 +08:00
bones-zhu
a1b454fc43
Update model_config.py fix type
2023-07-21 15:09:33 +08:00
hzg0601
5f4f8dcedc
解决loader.py中以名称匹配模型式未排除chatglm2的问题
2023-07-21 09:49:18 +08:00
hzg0601
a5294748a4
Merge branch 'dev' of github.com:imClumsyPanda/langchain-ChatGLM into dev
2023-07-21 09:32:19 +08:00
hzg0601
915f4f359a
补充openai的连接失败问题解决方案
2023-07-21 09:29:43 +08:00
imClumsyPanda
bf940e9041
Update README.md
2023-07-20 15:06:02 +08:00
imClumsyPanda
2db6604c55
Add files via upload
2023-07-20 15:04:12 +08:00
liunux@home
dd3617fcdf
将paddle相关loader改为动态引入,可以在不上传pdf/image知识文件的前提下使用protobuf=4.x。
...
这样可以使用最新版streamlit和chainlit。
2023-07-20 12:32:37 +08:00
Zhi-guo Huang
ee7285cd93
在args.py中增加ptuning相关的参数 ( #838 )
...
* 修复 bing_search.py的typo;更新model_config.py中Bing Subscription Key申请方式及注意事项
* 更新FAQ,增加了[Errno 110] Connection timed out的原因与解决方案
* 修改loader.py中load_in_8bit失败的原因和详细解决方案
* update loader.py
* stream_chat_bing
* 修改stream_chat的接口,在请求体中选择knowledge_base_id;增加stream_chat_bing接口
* 优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入
* update cli_demo.py
* 按照review建议进行修改
* 修改默认的多卡部署方案,基本保证针对新模型也不会失败
* 测试openai接口成功
* add ptuning-v2 dir
* 支持命令行输入ptuning路径
* 在FAQ中给出加载量化版本失败的原因和解决方案
* print error
* udpate
* Update args.py
* debug for fastchat_openai_llm
* temporarily save
* update faq for
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: zg h <bj wang@hzg0601-acer.hundsun.com>
2023-07-19 23:15:14 +08:00
hzg0601
50c872c0b8
update faq for
2023-07-19 23:09:19 +08:00
hzg0601
c501df2405
temporarily save
2023-07-19 10:57:09 +08:00
hzg0601
6199c45a13
Merge branch 'dev' of github.com:hzg0601/langchain-ChatGLM-annotation into dev
...
git pull origin dev.
2023-07-19 10:04:05 +08:00
hzg0601
391dc1d33a
debug for fastchat-openai-llm
2023-07-19 10:02:39 +08:00
hzg0601
90fe40b221
debug for fastchat_openai_llm
2023-07-19 10:00:23 +08:00
liunux4odoo
f88bf2cbf3
fix issue#580: 新建知识库出错 ( #880 )
...
* Add files via upload
* Update README.md
* fix: make get_vs_list return folders only
* fix: bugs when create new knowledgebase
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-07-18 23:40:18 +08:00
hzg0601
d714644afc
Merge branch 'dev' of https://github.com/imClumsyPanda/langchain-ChatGLM into dev
2023-07-18 21:23:14 +08:00
imClumsyPanda
6b66efa576
Update README.md
2023-07-18 14:30:58 +08:00
imClumsyPanda
343d16e583
Add files via upload
2023-07-18 14:30:30 +08:00
imClumsyPanda
1ef3ef5d27
update gradio version in requirements.txt
2023-07-18 04:03:28 +08:00
imClumsyPanda
7dc44249eb
update model_config.py
2023-07-17 21:49:05 +08:00
imClumsyPanda
98b773c43a
rebase master
2023-07-17 21:45:04 +08:00
imClumsyPanda
10a3185b34
rebase master
2023-07-17 21:43:57 +08:00
imClumsyPanda
33b978b5c4
update README.md
2023-07-17 21:39:10 +08:00
imClumsyPanda
a54b73aaf9
Update args.py
2023-07-17 21:26:13 +08:00
glide-the
aa944f6ee7
Merge pull request #852 from benjaminhuo/master
...
Fix LocalDocQA object has no attribute llm when adding docs
2023-07-17 21:25:17 +08:00
hzg0601
6f967a069d
udpate
2023-07-17 15:07:52 +08:00
Benjamin Huo
4e6edecd9e
Fix LocalDocQA object has no attribute llm when adding docs
...
Signed-off-by: Benjamin Huo <benjamin@kubesphere.io>
2023-07-16 11:39:46 +08:00
glide-the
c5026fb4e7
参数校验
2023-07-16 02:19:34 +08:00
glide-the
22d08f5ec5
必要参数校验
2023-07-16 02:17:52 +08:00
glide-the
1e2124ff54
参数校验
2023-07-16 01:31:28 +08:00
glide-the
c389f1a33a
增加fastchat打字机输出
2023-07-16 01:29:51 +08:00
liunux4odoo
5cbb86a823
rewrite streamlit ui with streamlit-chatbox;fix bugs ( #850 )
2023-07-15 22:05:57 +08:00
taokuizu
df3744f501
fix Non-UTF-8 code starting with \xe5 ( #849 )
2023-07-15 21:08:47 +08:00
taokuizu
3b93902670
修改README.md,添加支持的LLM(bloomz-7b1,bloom-3b,baichuan-7b,vicuna-13b-delta-v1.1) ( #845 )
2023-07-15 00:29:16 +08:00
imClumsyPanda
1cd4ba8a51
Update README.md
2023-07-14 18:43:24 +08:00
imClumsyPanda
3107f777fa
Add files via upload
2023-07-14 18:42:57 +08:00
hzg0601
db0fcf4e03
print error
2023-07-14 15:10:33 +08:00
hzg0601
760abab1d7
Merge branch 'dev' of github.com:hzg0601/langchain-ChatGLM-annotation into dev
...
merge upstream dev
2023-07-14 13:45:48 +08:00
hzg0601
3d082bf566
在FAQ中给出加载量化版本失败的原因和解决方案
2023-07-14 13:45:07 +08:00
hzg0601
57cb6b05de
add moss-int4
2023-07-13 22:21:00 +08:00
zg h
43d1bf4fb3
支持命令行输入ptuning路径
2023-07-13 22:10:54 +08:00
hzg0601
f68d347c25
add ptuning-v2 dir
2023-07-13 21:22:35 +08:00
glide-the
c5bc21781c
修改模型生成的调用方式,兼容Chain调用
...
修改模型切换的bug
2023-07-12 23:09:28 +08:00
Zhi-guo Huang
ca13ab8173
测试OPENAI接口成功 ( #813 )
2023-07-11 23:40:49 +08:00
hzg0601
1940da0adf
测试openai接口成功
2023-07-11 23:35:24 +08:00
imClumsyPanda
979dfa1976
Merge remote-tracking branch 'origin/dev' into dev
2023-07-11 21:49:02 +08:00
imClumsyPanda
2371feaa4f
update README.md
2023-07-11 21:48:50 +08:00
hzg0601
a8e820359a
Merge branch 'dev' of github.com:hzg0601/langchain-ChatGLM-annotation into dev
...
merge dev.
2023-07-11 21:44:59 +08:00
hzg0601
48ce8b1c84
pull dev
2023-07-11 21:43:26 +08:00
Zhi-guo Huang
64f22a9e53
修改默认的多卡部署方案,基本保证针对新模型也不会失败 ( #788 )
...
* 修复 bing_search.py的typo;更新model_config.py中Bing Subscription Key申请方式及注意事项
* 更新FAQ,增加了[Errno 110] Connection timed out的原因与解决方案
* 修改loader.py中load_in_8bit失败的原因和详细解决方案
* update loader.py
* stream_chat_bing
* 修改stream_chat的接口,在请求体中选择knowledge_base_id;增加stream_chat_bing接口
* 优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入
* update cli_demo.py
* 按照review建议进行修改
* 修改默认的多卡部署方案,基本保证针对新模型也不会失败
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-07-11 20:24:49 +08:00
imClumsyPanda
e02f49a49e
Merge branch 'dev' into dev
2023-07-11 20:24:18 +08:00
imClumsyPanda
3a6a6fa8f6
update model_config.py
2023-07-11 20:19:50 +08:00
imClumsyPanda
7480005822
Merge branch 'master' into dev
2023-07-11 20:18:40 +08:00
imClumsyPanda
2d1ad18a4f
update README.md
2023-07-11 20:18:24 +08:00
NieLamu
ff5f73e041
feat: fastapi 接口优化 ( #684 )
...
1. 接口增加参数校验,防止攻击
2. 优化接口参数和逻辑
3. 规范接口错误响应
4. 增加接口描述
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-07-11 19:52:52 +08:00
Zhi-guo Huang
a5ca4bf26a
1.增加对llama-cpp模型的支持;2.增加对bloom/chatyuan/baichuan模型的支持;3. 修复多GPU部署的bug;4. 修复了moss_llm.py的bug;5. 增加对openai支持(没有api,未测试);6. 支持在多卡情况自定义设备GPU ( #664 )
...
* 修复 bing_search.py的typo;更新model_config.py中Bing Subscription Key申请方式及注意事项
* 更新FAQ,增加了[Errno 110] Connection timed out的原因与解决方案
* 修改loader.py中load_in_8bit失败的原因和详细解决方案
* update loader.py
* stream_chat_bing
* 修改stream_chat的接口,在请求体中选择knowledge_base_id;增加stream_chat_bing接口
* 优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入
* update cli_demo.py
* add bloom-3b,bloom-7b1,ggml-vicuna-13b-1.1
* 1.增加对llama-cpp模型的支持;2.增加对bloom模型的支持;3. 修复多GPU部署的bug;4. 增加对openai支持(没有api,未测试);5.增加了llama-cpp模型部署的说明
* llama模型兼容性说明
* modified: ../configs/model_config.py
modified: ../docs/INSTALL.md
在install.md里增加对llama-cpp模型调用的说明
* 修改llama_llm.py以适应llama-cpp模型
* 完成llama-cpp模型的支持;
* make fastchat and openapi compatiable
* 1. 修复/增加对chatyuan,bloom,baichuan-7等模型的支持;2. 修复了moss_llm.py的bug;
* set default model be chatglm-6b
* 在多卡情况下也支持自定义GPU设备
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-07-11 19:36:50 +08:00
kztao
cf0f1d6625
Update README.md, 0.1.16版本已经支持删除知识库中的文件 ( #792 )
...
* Update README.md
* fix:The knowledge base name cannot be empty.
* Update webui.py
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-07-11 19:20:47 +08:00
kztao
c564c91a82
fix:The knowledge base name cannot be empty. ( #793 )
...
* fix:The knowledge base name cannot be empty.
* Update webui.py
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-07-11 19:18:24 +08:00
imClumsyPanda
80af725a41
Update README.md
2023-07-11 19:15:09 +08:00
imClumsyPanda
f0ea1c1bb0
Add files via upload
2023-07-11 19:14:41 +08:00
ysyx2008
5f0697799a
解决 image_loader.py 运行时报错“ModuleNotFoundError: No module named 'configs'”的问题。 ( #795 )
2023-07-11 19:12:46 +08:00
imClumsyPanda
a8a3ea9ca2
Update README.md
2023-07-07 10:27:00 +08:00
imClumsyPanda
af4ddc8923
Add files via upload
2023-07-07 10:26:23 +08:00
hzg0601
300d287d61
修改默认的多卡部署方案,基本保证针对新模型也不会失败
2023-07-06 04:47:44 +08:00
imClumsyPanda
e68bc53cab
Update README.md
2023-07-05 09:32:40 +08:00
imClumsyPanda
de98919fe6
Add files via upload
2023-07-05 09:32:05 +08:00
Fan
10abb8d781
添加启动API的参数,支持https、wss方式API调用 ( #728 )
...
* update README.md
* 添加启动API的参数,支持https、wss方式API调用。(CA证书自备)
添加启动API服务的markdown说明文档。
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: 一帆 <zhang.f@digitalcnzz.com>
2023-07-04 19:52:17 +08:00
stc2001
7217e3391d
Update model_config.py ( #768 )
...
添加ChatGLM2-6b-int4和ChatGLM2-6b-int8
2023-07-04 19:04:57 +08:00
imClumsyPanda
967ac2ed2b
merge master
2023-07-02 22:18:59 +08:00
imClumsyPanda
80ecc08044
update README.md
2023-07-02 22:16:58 +08:00
Zhi-guo Huang
c52308d605
1. 修改stream_chat的接口,在请求体中选择knowledge_base_id;2. 增加stream_chat_bing接口;3. 增加了调用流式接口的方法说明;4. 优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入 ( #630 )
...
* 修复 bing_search.py的typo;更新model_config.py中Bing Subscription Key申请方式及注意事项
* 更新FAQ,增加了[Errno 110] Connection timed out的原因与解决方案
* 修改loader.py中load_in_8bit失败的原因和详细解决方案
* update loader.py
* stream_chat_bing
* 修改stream_chat的接口,在请求体中选择knowledge_base_id;增加stream_chat_bing接口
* 优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入
* update cli_demo.py
* 按照review建议进行修改
2023-07-02 21:54:12 +08:00
hzg0601
43fae98bb5
按照review建议进行修改
2023-07-02 20:47:27 +08:00
zzxs
6ab496ea4a
Update api.py ( #628 )
...
修复websocket的伪流式输出
2023-07-02 13:42:53 +08:00
imClumsyPanda
b922970ac2
Update README.md
2023-07-01 10:16:47 +08:00
imClumsyPanda
393bd400cb
Add files via upload
2023-07-01 10:16:09 +08:00
Jingsong-Yan
421ce3da3a
Add device_map config to support chatglm2-6b ( #734 )
...
chatglm-6b和chatglm2-6b的参数命名不一致,本次提交旨在解决chatglm2-6b device_map 创建的问题。在chatglm_auto_configure_device_map 函数中新增了chatglm2-6b device_map 创建的相关代码。
2023-06-30 21:08:38 +08:00
neverless00
51ed739d6c
fix 2 bugs on streamlit demo ( #719 )
2023-06-30 21:01:41 +08:00
jinke
3c66fc3b18
向Readme添加Docker整合包描述 ( #746 )
2023-06-30 07:19:07 +08:00
imClumsyPanda
1612c89160
Update README.md
2023-06-29 12:53:27 +08:00
imClumsyPanda
2bda2cf7a6
Update README.md
2023-06-29 12:52:51 +08:00
imClumsyPanda
46bd13d9db
Add files via upload
2023-06-29 12:50:52 +08:00
imClumsyPanda
1ec8f33db8
Update README.md
2023-06-27 16:13:15 +08:00
imClumsyPanda
c69e63a442
Add files via upload
2023-06-27 16:11:45 +08:00
allseeeeeee
521d9e2f98
Dev streaming oom ( #722 )
2023-06-26 19:12:50 +08:00
imClumsyPanda
d0b746c54f
update README.md
2023-06-25 17:55:00 +08:00
imClumsyPanda
623d3d44ec
Merge branch 'master' into dev
2023-06-25 17:05:05 +08:00
imClumsyPanda
eaf46a04e3
Add chatglm2-6b configs
2023-06-25 17:04:16 +08:00
imClumsyPanda
fc57d76c3c
Update README.md
2023-06-22 10:39:18 +08:00
imClumsyPanda
bf87e791f3
Add files via upload
2023-06-22 10:38:54 +08:00
fxjhello
6195a5974a
Merge pull request #651 from sivdead/fix/kbs_interface_adjust
...
前端知识库相关接口报错修复
2023-06-20 19:01:48 +08:00
fxjhello
6e666237cd
Merge pull request #679 from hzhaoy/master
...
Fix #675 : 解决因vue前端代码有误导致镜像构建失败的问题
2023-06-20 18:59:21 +08:00
超能刚哥
d24d736c38
Merge pull request #1 from imClumsyPanda/dev
...
Dev
2023-06-20 17:37:59 +08:00
Elwin
8d01bc9170
Merge branch 'imClumsyPanda:master' into master
2023-06-20 16:27:24 +08:00
hzhaoy
1a0eadccb2
Fix #675 : 解决因vue前端代码有误导致镜像构建失败的问题
2023-06-20 15:54:11 +08:00
LuoQianhong
241e19a9af
Merge branch 'dev' into fix/kbs_interface_adjust
2023-06-20 09:18:14 +08:00
imClumsyPanda
7b4884a2db
update README.md
2023-06-19 23:02:56 +08:00
TOMCAT 007
ef5bab1d92
错误操作撤销了#653,补充提交
2023-06-19 21:16:51 +08:00
imClumsyPanda
11c35722ba
update QR Code
2023-06-19 20:51:18 +08:00
fengyunzaidushi
d7d235463e
整理了下issue的问题,方便新手入门 ( #669 )
...
* Create ceshi
* Delete ceshi
* Create ceshi
* langchain-问题整理
下一步分类
* Delete ceshi
2023-06-19 19:33:11 +08:00
imClumsyPanda
6e953da07b
Merge branch 'dev' into master
2023-06-18 21:54:53 +08:00
imClumsyPanda
017b34647e
update requirements.txt and model_config.py
2023-06-18 21:52:56 +08:00
imClumsyPanda
f6218316e3
update requirements.txt and model_config.py
2023-06-18 21:52:49 +08:00
kiddog99
25b46a7b9e
标题增强 ( #631 )
...
* Add files via upload
* Update local_doc_qa.py
* Update model_config.py
* Update zh_title_enhance.py
* Add files via upload
* Update README.md
* fix bugs in MyFAISS.delete_doc
* fix:前端知识库获取失败.
* update zh_title_enhance.py
* update zh_title_enhance.py
* Update zh_title_enhance.py
* add test/textsplitter
* add test_zh_title_enhance.py
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: JZF <jiangzhifeng_jzf@163.com>
Co-authored-by: fxjhello <127916299+fxjhello@users.noreply.github.com>
2023-06-18 21:45:06 +08:00
超能刚哥
41d8846e13
移除EventSourceResponse引用
2023-06-18 17:37:26 +08:00
超能刚哥
6023426344
去除多余依赖
2023-06-18 17:36:46 +08:00
超能刚哥
d61ff37f45
增加sse_starlette依赖包
2023-06-18 17:35:55 +08:00
超能刚哥
f21e00bf16
LLM对话和知识库对话接口增加流式输出功能
2023-06-18 17:30:41 +08:00
fxjhello
3f7e81585e
Merge pull request #657 from imClumsyPanda/revert-653-dev-1
...
Revert 653 dev 1
2023-06-17 20:30:04 +08:00
fxjhello
409a302f9b
Revert "fix:前端知识库获取失败. 修改获取及删除接口至knowledge_base"
2023-06-17 20:29:25 +08:00
fxjhello
6981bdee62
Merge pull request #653 from 1729457433/dev-1
...
fix:前端知识库获取失败. 修改获取及删除接口至knowledge_base
2023-06-17 20:29:17 +08:00
fxjhello
5eab13c911
Merge pull request #636 from hzhaoy/master
...
解决vue前端镜像构建失败的问题
2023-06-17 20:28:54 +08:00
敬文 | 罗千洪
3efd408f5a
fix(前端): 删除知识库改为使用删除知识库接口
2023-06-17 16:33:43 +08:00
JZF
91c647812f
fix:前端知识库获取失败.
2023-06-17 11:29:55 +08:00
敬文 | 罗千洪
7cbdc6702e
fix(前端): 查询切换到知识库tab时,应该调用查询知识库列表接口而不是文件列表接口;删除文件改为使用DELETE方法,参数按api.py改动调整为QueryParam
2023-06-17 02:46:45 +08:00
imClumsyPanda
2a964f298c
fix bugs in MyFAISS.delete_doc
2023-06-16 23:52:28 +08:00
imClumsyPanda
2282320d41
fix bugs in MyFAISS.delete_doc
2023-06-16 23:51:20 +08:00
bright.python
2311fb007d
Update MyFAISS.py ( #648 )
...
防止i不存在时候错误,
langchain-ChatGLM/vectorstores/MyFAISS.py", line 55, in similarity_search_with_score_by_vector
_id = self.index_to_docstore_id[i]
KeyError: 4
2023-06-16 23:47:31 +08:00
imClumsyPanda
1eba834985
Update README.md
2023-06-16 15:26:26 +08:00
imClumsyPanda
3743f6f5c6
Add files via upload
2023-06-16 15:25:19 +08:00
hzg0601
ba336440aa
Merge branch 'dev' of github.com:imClumsyPanda/langchain-ChatGLM into dev
...
pull for 2023--6-15
2023-06-15 13:53:22 +08:00
hzg0601
c42c0cbf87
update cli_demo.py
2023-06-15 13:46:11 +08:00
hzg0601
b262612248
优化cli_demo.py的逻辑:支持 输入提示;多输入;重新输入
2023-06-15 13:15:00 +08:00
hzhaoy
e177b0bbc8
Fix #635 : 解决vue前端镜像构建失败的问题
2023-06-15 11:36:57 +08:00
imClumsyPanda
3d95706d5c
fix bugs in webui.py
2023-06-15 01:00:45 +08:00
imClumsyPanda
5f652183f4
fix bugs in webui.py
2023-06-15 00:38:38 +08:00
imClumsyPanda
a62617f394
Merge remote-tracking branch 'origin/dev' into dev
2023-06-15 00:26:45 +08:00
imClumsyPanda
b674c9a524
fix bugs in pdf_loader.py and image_loader.py
2023-06-15 00:26:27 +08:00
imClumsyPanda
ed7c54858a
add delete knowledge base and delete files from knowledge base to webui
2023-06-15 00:21:41 +08:00
Zhi-guo Huang
a70df98825
更新FAQ,model_config.py,bing_search.py文件,增加bing搜索问答相关问题的原因和可能解决方案,修复了一些typo;修改loader.py中load_in_8bit失败的原因和详细解决方案 ( #610 )
...
* 修复 bing_search.py的typo;更新model_config.py中Bing Subscription Key申请方式及注意事项
* 更新FAQ,增加了[Errno 110] Connection timed out的原因与解决方案
* 修改loader.py中load_in_8bit失败的原因和详细解决方案
* update loader.py
2023-06-14 21:31:26 +08:00
imClumsyPanda
331f39cde7
merge master
2023-06-14 21:21:56 +08:00
imClumsyPanda
58d6a9a098
update MyFAISS with method mentioned in https://github.com/imClumsyPanda/langchain-ChatGLM/issues/613#issuecomment-1590460465
2023-06-14 21:20:52 +08:00
imClumsyPanda
a55aab498f
Merge branch 'master' of https://github.com/imClumsyPanda/langchain-ChatGLM
2023-06-14 21:09:30 +08:00
imClumsyPanda
40101dbb1f
Update README.md
2023-06-14 17:26:56 +08:00
imClumsyPanda
5c81671cf7
Add files via upload
2023-06-14 17:25:57 +08:00
hzg0601
660f8c6715
修改stream_chat的接口,在请求体中选择knowledge_base_id;增加stream_chat_bing接口
2023-06-14 11:17:21 +08:00
hzg0601
987f5518f2
stream_chat_bing
2023-06-14 08:55:27 +08:00
hzg0601
b63c74212f
update loader.py
2023-06-14 08:22:05 +08:00
imClumsyPanda
11dd2b5b84
update api.py
2023-06-14 00:35:33 +08:00
imClumsyPanda
a887df1715
add knowledge_base folder and move vector_store and content inside
2023-06-13 23:54:29 +08:00
hzg0601
f7e7d318d8
修改loader.py中load_in_8bit失败的原因和详细解决方案
2023-06-13 23:30:10 +08:00
imClumsyPanda
585b4427ba
Merge branch 'master' into dev
2023-06-13 22:40:14 +08:00
imClumsyPanda
fc6d4c33e3
add delete_doc and update_doc to MyFAISS.py
2023-06-13 22:39:41 +08:00
glide-the
0abd2d9992
llama_llm.py 提示词修改
2023-06-13 18:36:07 +08:00
imClumsyPanda
fef22e3133
Update README.md
2023-06-12 21:38:38 +08:00
imClumsyPanda
cb870694df
Add files via upload
2023-06-12 21:38:16 +08:00
glide-the
f1cfd6d688
cli失败的问题
2023-06-12 20:38:06 +08:00
glide-the
7e89f5b69b
cli失败的问题
2023-06-12 20:35:29 +08:00
glide-the
ff3fc48a31
Merge pull request #599 from hzg0601/dev
...
修复[bug] #598 #601,解决通过cli.py启动api、cli失败的问题
修改cli_demo启动顺序的问题
2023-06-12 20:29:44 +08:00
Li Xing
0f0c4d740a
Update README.md ( #608 )
2023-06-12 20:09:14 +08:00
hzg0601
4054e46cab
更新FAQ,增加了[Errno 110] Connection timed out的原因与解决方案
2023-06-12 16:28:40 +08:00
hzg0601
eb620ddefc
修复 bing_search.py的typo;更新model_config.py中Bing Subscription Key申请方式及注意事项
2023-06-12 16:22:07 +08:00
hzg0601
17f9a00eaf
解决无法从cli.py启动cli_demo的问题
2023-06-12 13:20:23 +08:00
hzg0601
a3ee718ab5
temp
2023-06-12 12:57:41 +08:00
hzg0601
4f7dc28f08
修复通过cli.py启动api的错误
2023-06-12 10:38:08 +08:00
Zhi-guo Huang
453702dbe1
Merge branch 'imClumsyPanda:dev' into dev
2023-06-12 00:42:21 +08:00
imClumsyPanda
ecd7b6133b
updata model_config.py
2023-06-12 00:10:47 +08:00
imClumsyPanda
7863e0fea8
updata MyFAISS
2023-06-12 00:06:06 +08:00
Zhi-guo Huang
27a9bf2433
更新FAQ和requirements,解决upload_file接口的两个异常 ( #593 )
2023-06-11 21:25:02 +08:00
imClumsyPanda
66c4e9de92
Merge branch 'master' into dev
2023-06-11 21:16:08 +08:00
glide-the
ef69c3f5e6
bing搜索agent
2023-06-10 22:26:16 +08:00
glide-the
5afee735a9
bing搜索agent
2023-06-10 22:15:39 +08:00
glide-the
b657eb245f
增加llm打印
2023-06-10 22:14:50 +08:00
hzg0601
0b5ebf667c
更新FAQ和requirements,解决upload_file接口的两个异常
2023-06-10 12:19:29 +08:00
glide-the
b352c29d46
llm
2023-06-09 21:05:10 +08:00
imClumsyPanda
dec0c46816
add support for new embedding models: moka-ai/m3e-base and moka-ai/m3e-small
2023-06-09 19:04:34 +08:00
imClumsyPanda
80faf3a11e
Update README.md
2023-06-09 16:29:24 +08:00
imClumsyPanda
90aead2ecd
Add files via upload
2023-06-09 16:29:02 +08:00
imClumsyPanda
55fa36eef8
Delete 27a1d57131f663c59481e76af66c48fa.jpeg
2023-06-09 16:28:30 +08:00
imClumsyPanda
60ad46c7fb
Add files via upload
2023-06-09 16:27:59 +08:00
glide-the
218aca2e20
删除model_dir和NO_REMOTE_MODEL
2023-06-08 16:51:04 +08:00
imClumsyPanda
f1f742ce44
add self-defined class MyFAISS
2023-06-07 23:18:47 +08:00
imClumsyPanda
43b389aa16
Update README.md
2023-06-07 22:47:08 +08:00
imClumsyPanda
3ecbd5cf21
Add files via upload
2023-06-07 22:46:16 +08:00
imClumsyPanda
89b986c3bc
add support for csv file
2023-06-07 22:20:47 +08:00
imClumsyPanda
8b7c2e417c
add support for csv file
2023-06-07 22:14:08 +08:00
imClumsyPanda
14c34516ba
Dev ( #572 )
...
* feat(webui): update port number in Vite config file from 1002 to 8090
* update chatglm_llm.py
---------
Co-authored-by: NieLamu <mxmxlty@gmail.com>
Co-authored-by: fxjhello <127916299+fxjhello@users.noreply.github.com>
2023-06-07 21:26:31 +08:00
imClumsyPanda
46b872a854
update chatglm_llm.py
2023-06-07 21:25:40 +08:00
imClumsyPanda
bb8224025e
Merge branch 'master' into dev
2023-06-07 18:15:27 +08:00
imClumsyPanda
a438b2bb15
Merge branch 'master' into dev
2023-06-07 18:15:03 +08:00
shrimp
57b4f9306d
修复BUG ( #570 )
...
一、修复模型历史记录仅一条问题,修改了模型加载代码,已修复。
二、修复模型历史记录仅一条问题,修改了webui有一个地方有问题,已修复。
三、知识库单条数据入库因知识库名称缓存问题导致的BUG,也已修复。
2023-06-07 18:12:51 +08:00
fxjhello
e5e0706a96
Merge pull request #555 from NieLamu/feat/vue-port
...
feat(webui): update port number in Vite config file from 1002 to 8090
2023-06-06 18:55:36 +08:00
NieLamu
29c8c7f2c6
feat(webui): update port number in Vite config file from 1002 to 8090
2023-06-06 17:43:29 +08:00
imClumsyPanda
9dee1f28c0
Update README.md
2023-06-06 14:50:44 +08:00
imClumsyPanda
ee867c23a8
Add files via upload
2023-06-06 13:20:46 +08:00
imClumsyPanda
a8dc7e38df
Update README.md
2023-06-05 07:56:34 +08:00
imClumsyPanda
099e8c1d6c
Add files via upload
2023-06-05 07:56:11 +08:00
imClumsyPanda
0f62f197fd
Update README.md
2023-06-04 12:10:08 +08:00
zzxs
dc52bb134d
Update api.py ( #540 )
...
修改api部署json解析
2023-06-03 14:20:03 +08:00
imClumsyPanda
33683f447c
Merge branch 'master' into dev
2023-06-03 14:17:32 +08:00
郑肖峰
b22e15ab90
Vs refresh ( #529 )
...
* Update README.md
* Add files via upload
* Update README.md
* Update README.md
* gradio webui 刷新页面更新知识库列表
* update webui.py
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: 扶桑 <fusang@myweimai.com>
2023-06-03 14:15:29 +08:00
imClumsyPanda
82cc85bde4
Update README.md
2023-06-02 14:08:48 +08:00
imClumsyPanda
d819a6d7ce
Update README.md
2023-06-02 14:08:01 +08:00
imClumsyPanda
8fdc877a3e
Add files via upload
2023-06-01 21:48:00 +08:00
imClumsyPanda
b035f2046f
Update README.md
2023-06-01 21:47:06 +08:00
imClumsyPanda
5290730dee
update README.md
2023-05-31 23:01:43 +08:00
imClumsyPanda
27ef86f8e6
update streamlit ui
2023-05-31 22:57:18 +08:00
imClumsyPanda
e093f8694a
add fastchat.md
2023-05-31 22:56:32 +08:00
imClumsyPanda
20f1daff1a
add fastchat.md
2023-05-31 22:50:35 +08:00
imClumsyPanda
23052629ad
update requirements.txt
2023-05-31 22:31:54 +08:00
glide-the
ab73f6ad93
适配远程LLM调用
2023-05-31 22:26:39 +08:00
glide-the
24324563d6
适配远程LLM调用
2023-05-31 22:11:28 +08:00
imClumsyPanda
99e9d1d730
update FAQ.md
2023-05-31 21:13:21 +08:00
imClumsyPanda
ae35b049ff
update README.md
2023-05-31 21:05:44 +08:00
imClumsyPanda
b1ba2003be
update webui.py
2023-05-31 20:55:45 +08:00
imClumsyPanda
a072905893
Merge branch 'master' into dev
2023-05-31 18:06:07 +08:00
imClumsyPanda
5c0c1eed93
update pdf_loader.py
2023-05-31 18:03:37 +08:00
imClumsyPanda
99ee2e9fd8
Update README.md
2023-05-31 16:28:43 +08:00
imClumsyPanda
46a7690df5
Update README.md
2023-05-31 16:28:18 +08:00
imClumsyPanda
ad613a67d6
Add files via upload
2023-05-31 16:27:54 +08:00
glide-the
0f2ea29194
调整项目结构,适配远程LLM调用生成问题。新增fastchat_openai_llm.py实现fastchat openai报文报文形式调用
2023-05-31 00:00:35 +08:00
imClumsyPanda
f5a85a1955
Merge branch 'master' into dev
2023-05-30 23:35:02 +08:00
liunux4odoo
88fee48d8c
use lru_cache to optimize loading of local vector store ( #496 )
...
* Add files via upload
* Update README.md
* use lru_cache to optimize loading of local vector store
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: liunux <liunux@office>
2023-05-30 23:05:39 +08:00
glide-the
0a605bf4b5
调整项目结构
2023-05-30 20:40:27 +08:00
zhoutongqing
875dae64bf
zhoutongqing:添加重新构建知识库功能 ( #418 )
...
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-30 20:32:42 +08:00
移花香
8477368f9c
delete_docs ( #499 )
...
删除文档的时候重新生成知识库(FAISS)内的数据
2023-05-30 19:42:44 +08:00
imClumsyPanda
8d669cdb4c
Update README.md
2023-05-29 22:09:57 +08:00
imClumsyPanda
e07183a08c
Add files via upload
2023-05-29 22:09:11 +08:00
imClumsyPanda
f7044f6fe0
update webui.py
2023-05-29 00:16:16 +08:00
imClumsyPanda
c7106317a0
update webui.py
2023-05-29 00:03:49 +08:00
imClumsyPanda
89fe20b59f
update QR Code
2023-05-28 19:22:55 +08:00
imClumsyPanda
486586c647
Merge branch 'master' into dev
2023-05-28 19:22:19 +08:00
Ding Junyao
f7e120fe56
add tree func for reading files in dirs ( #471 )
2023-05-27 22:00:43 +08:00
liunux4odoo
4295f6069d
添加streamlit ui ( #480 )
...
* update QR Code
* Add files via upload
* Update README.md
* add streamlit ui including all functions of webui
---------
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-27 21:58:30 +08:00
imClumsyPanda
c7b069de09
Update README.md
2023-05-27 15:38:45 +08:00
imClumsyPanda
ec3ccd3363
Add files via upload
2023-05-27 15:38:18 +08:00
glide-the
3324c12d69
增加cpu加载模型逻辑
2023-05-26 22:52:55 +08:00
glide-the
561c40afee
Merge remote-tracking branch 'origin/dev' into dev
2023-05-26 22:32:25 +08:00
glide-the
994401670b
拓展功能检查依赖提示安装
2023-05-26 22:32:12 +08:00
keenzhu
11bcb58ae6
增加rss订阅,以及添加了依赖文件
2023-05-26 18:50:20 +08:00
keenzhu
9dc9ac6380
添加依赖feedparser
2023-05-26 18:46:18 +08:00
keenzhu
8d4ef39c6c
添加RSS_loader.py用作从RSS订阅知识库
2023-05-26 18:43:55 +08:00
glide-the
1c5f71beee
Merge remote-tracking branch 'origin/dev' into dev
2023-05-26 01:49:26 +08:00
glide-the
5f010823aa
Build an abstract dialogue model using classes and methods to represent different dialogue elements
...
Fixes # None
Before submitting
If you want to review, please refer to the quick start example provided in langchain/chains/dialogue_answering/main.py. You may need to set the openaikey and the following startup parameters: --dialogue-path: the location of the dialogue file, --embedding-model: the HuggingFaceEmbeddings model to use (defaults to GanymedeNil/text2vec-large-chinese) if not specified.
Regarding the format of the dialogue file, please refer to the following information:
```text
sun:
Has the offline model been run?
glide-the:
Yes, it has been run, but the results are not very satisfactory.
glide-the:
It lacks chat intelligence and falls far behind in terms of logic and reasoning.
sun:
Are you available for voice chat?
glide-the:
I'm considering using this offline model: https://huggingface.co/chat
glide-the:
voice chat okay.
glide-the:
You can take a look at the dev_agent branch of the langchain-chatglm project.
glide-the:
There's a dialogue model question-answering example under the agent.
sun:
Alright.
glide-the:
The specified chat record file is exported from WeChat.
```
2023-05-26 01:49:07 +08:00
glide-the
cf07c014c4
Build an abstract dialogue model using classes and methods to represent different dialogue elements.
...
This class serves as a fundamental framework for constructing dialogue models.
2023-05-26 01:47:29 +08:00
glide-the
25e5ab1282
增加call_行为
2023-05-26 01:46:59 +08:00
imClumsyPanda
f0955768f5
update QR Code
2023-05-26 00:24:51 +08:00
imClumsyPanda
3d33191bd7
update chatglm_llm.py
2023-05-25 23:04:53 +08:00
imClumsyPanda
e4df46bcaa
merge master
2023-05-25 22:57:51 +08:00
imClumsyPanda
684b893d4e
update README.md
2023-05-25 22:45:27 +08:00
imClumsyPanda
a867cca747
Delete qr_code_21.jpg
2023-05-25 22:44:05 +08:00
imClumsyPanda
a1fd0b8750
Update chatglm_llm.py
2023-05-25 22:00:17 +08:00
glide-the
c4ee36b8ac
删除 AnswerResultStream 、generate_with_callback收集器
2023-05-25 21:07:40 +08:00
glide-the
e7b06a9072
删除流式请求中的缓存清理
2023-05-25 20:58:04 +08:00
imClumsyPanda
92185962ce
Update README.md
2023-05-25 12:34:17 +08:00
imClumsyPanda
d0c2cfbd0c
Update README.md
2023-05-25 10:58:31 +08:00
imClumsyPanda
22ac29a665
Update README.md
2023-05-25 10:55:02 +08:00
imClumsyPanda
26070ced34
Add files via upload
2023-05-25 10:54:35 +08:00
imClumsyPanda
67e8416181
Add files via upload
2023-05-25 10:49:10 +08:00
fxjhello
5eccb58759
Merge branch 'dev' of https://github.com/imClumsyPanda/langchain-ChatGLM into dev
2023-05-24 09:24:57 +08:00
fxjhello
46ae480e66
修改dockerfile
2023-05-24 09:24:20 +08:00
imClumsyPanda
bde1585cd5
Merge branch 'master' into dev
2023-05-24 00:21:07 +08:00
imClumsyPanda
52c6f2d29f
fix int4 and int8 model init bug
2023-05-24 00:20:03 +08:00
imClumsyPanda
dd40c5d179
Merge branch 'master' into dev
2023-05-24 00:16:03 +08:00
imClumsyPanda
1ee12266e8
更新 requirements.txt
2023-05-24 00:12:59 +08:00
glide-the
a1b1b78108
使用model_config默认配置启动
...
llama_llm.py 删除流式输出
base.py、shared.py 删除多余代码
fastchat_llm.py 业务实现
2023-05-23 23:10:31 +08:00
zhubao315
eeea00e294
Update Dockerfile-cuda ( #446 )
2023-05-23 16:14:07 +08:00
imClumsyPanda
3d17478588
Update README.md
2023-05-23 08:35:33 +08:00
imClumsyPanda
42a22c927b
Add files via upload
2023-05-23 08:35:01 +08:00