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
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
8773149a3e
update api.py
2023-08-05 23:12:17 +08:00
imClumsyPanda
6c7adfbaeb
change kb_api functions with KnowledgeBase class method
2023-08-05 03:15:41 +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
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
e4fed93989
update format in api.py
2023-08-01 21:53:19 +08:00
imClumsyPanda
7c01a2a253
add bing_search_chat.py and duckduckgo_search_chat.py
2023-08-01 16:39:17 +08:00
liunux4odoo
946f10e1f2
split api_start to create_app & run_api. user can run api with uvicorn in console: uvicorn server.api:app --port 7861
2023-07-31 10:05:19 +08:00
liunux4odoo
829ced398b
make api.py import model_config coreectlly
2023-07-29 23:00:50 +08:00
imClumsyPanda
dcf49a59ef
v0.2.0 first commit
2023-07-27 23:22:07 +08:00