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
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
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
imClumsyPanda
3c44cf65cd
update webui layout
2023-08-10 23:51:10 +08:00
liunux4odoo
b733a47902
split requirements to 2 parts: basic with api; webui
2023-08-10 15:51:22 +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
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
liunux4odoo
222689ed5b
update kb and search chat: disable streaming in swagger besides streaming in ApiRequest
2023-08-09 23:35:36 +08:00
liunux4odoo
450b23c4f2
update knowledge base management api and ui
2023-08-09 22:00:33 +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
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
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
08493bffbb
add a basic knowledge base management ui.
2023-08-07 21:00:55 +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
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
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
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
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
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
5ce2484af0
update webui.py
2023-08-01 15:08:19 +08:00
imClumsyPanda
bcfd3f5af5
add webui_pages
2023-08-01 14:47:38 +08:00