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