Commit Graph

862 Commits

Author SHA1 Message Date
liunux4odoo b733a47902 split requirements to 2 parts: basic with api; webui 2023-08-10 15:51:22 +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
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
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