Commit Graph

875 Commits

Author SHA1 Message Date
imClumsyPanda d898c7dd6c update textsplitter 2023-05-07 12:06:09 +08:00
imClumsyPanda 4150af003a merge master 2023-05-06 23:56:39 +08:00
imClumsyPanda e2d7452c7b update chinese_text_splitter.py 2023-05-06 23:26:49 +08:00
CHANGXUBO 3111fb56bd
Fix: 将gradio版本升级至3.28.3,修复知识库下拉框change事件获取值不是当前选中值的bug。 (#261)
* webui优化:解决每次页面刷新后都需要重新选择知识库的问题,增加Flagging收集问答效果。

* Fix: 将gradio版本升级至3.28.3,修复知识库下拉框change事件获取值不是当前选中值的bug。

* solve webui confict

---------

Co-authored-by: Bob Chang <bob.chang@amway.com>
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-06 21:38:15 +08:00
imClumsyPanda 12fa4a2bb7 update cli_demo.py 2023-05-06 19:24:58 +08:00
keenzhu 2c72a00954
Update local_doc_qa.py
增加命令行导入的进度条显示
增加文本提示
2023-05-06 18:39:58 +08:00
keenzhu 26393f488b
Update cli_demo.py
加了一个判断用户输入本地知识路径是否为空的判断,避免误触回车
2023-05-06 18:34:37 +08:00
imClumsyPanda 0a4dd1987d update webui.py 2023-05-06 12:07:32 +08:00
Bob Chang 63453f2340
webui优化:解决每次页面刷新后都需要重新选择知识库的问题,增加Flagging收集问答效果。 (#250)
Co-authored-by: Bob Chang <bob.chang@amway.com>
2023-05-06 11:57:48 +08:00
imClumsyPanda 3adfecaa4d
Update README.md 2023-05-06 10:55:30 +08:00
imClumsyPanda fb7c9170a4
Add files via upload 2023-05-06 10:55:00 +08:00
royd 23a6b26f3e
增加语义切分模型 (#248) 2023-05-05 23:38:53 +08:00
shrimp 0d9db37f45
完善API接口,完善模型加载 (#247)
* 完善知识库路径问题,完善api接口

统一webui、API接口知识库路径,后续路径如下:
知识库路经就是:/项目代码文件夹/vector_store/'知识库名字'
文件存放路经:/项目代码文件夹/content/'知识库名字'

修复通过api接口创建知识库的BUG,完善API接口功能。

* Update model_config.py


* 完善知识库路径问题,完善api接口 (#245) (#246)

* Fix 知识库无法上载,NLTK_DATA_PATH路径错误 (#236)

* Update chatglm_llm.py (#242)

* 完善知识库路径问题,完善api接口

统一webui、API接口知识库路径,后续路径如下:
知识库路经就是:/项目代码文件夹/vector_store/'知识库名字'
文件存放路经:/项目代码文件夹/content/'知识库名字'

修复通过api接口创建知识库的BUG,完善API接口功能。

* Update model_config.py

---------

Co-authored-by: shrimp <411161555@qq.com>
Co-authored-by: Bob Chang <bob-chang@outlook.com>

* 优化API接口,完善模型top_p参数

优化API接口,知识库非必须选项。
完善模型top_p参数

* 完善API接口,完善模型加载

API接口知识库非必须加载项
完善模型top_p参数。

---------

Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
Co-authored-by: Bob Chang <bob-chang@outlook.com>
2023-05-05 22:31:41 +08:00
imClumsyPanda 41cd0fd8ae
完善知识库路径问题,完善api接口 (#245) (#246)
* Fix 知识库无法上载,NLTK_DATA_PATH路径错误 (#236)

* Update chatglm_llm.py (#242)

* 完善知识库路径问题,完善api接口

统一webui、API接口知识库路径,后续路径如下:
知识库路经就是:/项目代码文件夹/vector_store/'知识库名字'
文件存放路经:/项目代码文件夹/content/'知识库名字'

修复通过api接口创建知识库的BUG,完善API接口功能。

* Update model_config.py

---------

Co-authored-by: shrimp <411161555@qq.com>
Co-authored-by: Bob Chang <bob-chang@outlook.com>
2023-05-05 19:32:11 +08:00
imClumsyPanda 6ac8f73a52
Merge branch 'master' into dev 2023-05-05 19:32:02 +08:00
shrimp 7497b261b3
完善知识库路径问题,完善api接口 (#245)
* Fix 知识库无法上载,NLTK_DATA_PATH路径错误 (#236)

* Update chatglm_llm.py (#242)

* 完善知识库路径问题,完善api接口

统一webui、API接口知识库路径,后续路径如下:
知识库路经就是:/项目代码文件夹/vector_store/'知识库名字'
文件存放路经:/项目代码文件夹/content/'知识库名字'

修复通过api接口创建知识库的BUG,完善API接口功能。

* Update model_config.py

---------

Co-authored-by: Bob Chang <bob-chang@outlook.com>
Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-05 18:44:37 +08:00
imClumsyPanda e629526589
Update chatglm_llm.py (#242) 2023-05-05 15:14:17 +08:00
Bob Chang 51d0b7f855
Fix 知识库无法上载,NLTK_DATA_PATH路径错误 (#236) 2023-05-05 08:21:39 +08:00
imClumsyPanda fc7197fe5f delete qr code 10 2023-05-04 21:23:24 +08:00
imClumsyPanda 21940a3563 Merge remote-tracking branch 'origin/master' into dev 2023-05-04 21:21:55 +08:00
shrimp 14d998b8e6
可选择lora权重加载 (#231)
* Add files via upload

增加lora权重使用

* Update model_config.py

* Add files via upload

修复一个小错误,少写了模型加载

* 使用lora微调的权重

使用lora微调的权重

* Update model_config.py
2023-05-04 21:01:55 +08:00
Winter 47922d2ee3
fix: 扩展文档的代码逻辑 (#227)
* fix: 扩展文档的代码逻辑

* Update local_doc_qa.py

---------

Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-04 20:58:15 +08:00
imClumsyPanda 07ff81a119 update torch_gc 2023-05-04 20:48:36 +08:00
imClumsyPanda 0adcc64dae
Update README.md (#228) 2023-05-04 16:04:24 +08:00
imClumsyPanda 22f35bd726
Add files via upload 2023-05-04 16:03:46 +08:00
miller 09f57741fa
Update INSTALL.md (#223) 2023-05-04 13:34:01 +08:00
imClumsyPanda b03634fb7c add api.py 2023-05-03 22:35:05 +08:00
imClumsyPanda 2c1fd2bdd5 add api.py 2023-05-03 22:31:28 +08:00
Bing Han e0cf26019b
Use fastapi to implement API (#209)
* Use fastapi to implement API

* Update model_config.py

---------

Co-authored-by: imClumsyPanda <littlepanda0716@gmail.com>
2023-05-03 21:29:28 +08:00
imClumsyPanda 4e9de7df41 Merge branch 'master' into dev 2023-05-03 13:15:00 +08:00
imClumsyPanda 3f43199449 update utils 2023-05-03 13:14:36 +08:00
imClumsyPanda 8c4b2f9f6d Merge branch 'master' into dev 2023-05-03 11:33:45 +08:00
imClumsyPanda 57d4d0a29e update chatglm_llm.py 2023-05-03 11:29:59 +08:00
imClumsyPanda e567b862cc update utils 2023-05-03 10:08:35 +08:00
imClumsyPanda 8db6cd5119 update utils 2023-05-03 10:05:08 +08:00
glide-the a0b312d749 Merge remote-tracking branch 'origin/dev' into dev
# Conflicts:
#	configs/model_config.py
2023-05-02 12:43:27 +08:00
imClumsyPanda 4c8429cb15
update README.md (#217) 2023-05-02 10:48:49 +08:00
imClumsyPanda 35aa8119f8 update README.md 2023-05-02 10:48:13 +08:00
imClumsyPanda a4e67a67b4 update local_doc_qa.py 2023-05-02 01:11:05 +08:00
imClumsyPanda c98c4888e9 update PROMPT_TEMPLATE 2023-05-02 00:28:09 +08:00
imClumsyPanda 7a406e4263
Dev (#214)
* github: Add issue templates

* supports GPU usage in docker (#197)

* 上下文的prompt模版内容修改

---------

Co-authored-by: Calcitem <calcitem@outlook.com>
Co-authored-by: cocomany <124849750+cocomany@users.noreply.github.com>
Co-authored-by: glide-the <2533736852@qq.com>
2023-05-01 23:55:37 +08:00
imClumsyPanda 4df9d76f8a add streaming option in configs/model_config.py 2023-05-01 23:52:28 +08:00
imClumsyPanda 0e8cc0d16c add streaming option in configs/model_config.py 2023-05-01 23:52:28 +08:00
imClumsyPanda 2ebcd1369e
Update README.md (#213) 2023-05-01 21:42:47 +08:00
imClumsyPanda b6033cb3d8
Add files via upload 2023-05-01 21:41:54 +08:00
glide-the bf2466d91c 上下文的prompt模版内容修改 2023-04-30 14:34:41 +08:00
cocomany 7f8fcc81c4
supports GPU usage in docker (#197) 2023-04-29 22:40:35 +08:00
Calcitem d9dfd1942c
github: Add issue templates (#205) 2023-04-29 22:39:18 +08:00
Calcitem b95ad4fcbc github: Add issue templates 2023-04-29 01:57:54 +08:00
imClumsyPanda 474e3414c5 update README.md 2023-04-28 19:11:26 +08:00