Commit Graph

1012 Commits

Author SHA1 Message Date
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