Commit Graph

  • f5024245a7 make api.py and webui.py working offline liunux4odoo 2023-08-10 13:33:40 +08:00
  • 7a57f67587 fix: bug when delete chat session liunux4odoo 2023-08-10 13:06:30 +08:00
  • d89fcb3b2e update knowledge base management page: 1. move get_kb_details & get_doc_details to utils.py 2. adjust aggrid columns width. liunux4odoo 2023-08-10 11:37:14 +08:00
  • d4f728dfa2 添加向量数据库pg支持,和向量库docker-compose.ym环境文件 zqt 2023-08-10 11:16:52 +08:00
  • f7b2c8cd04 更新readme hzg0601 2023-08-10 10:09:44 +08:00
  • 73393d781a 更新readme,增加启动多个llm服务的说明;增加停止llm服务的说明 hzg0601 2023-08-10 09:52:34 +08:00
  • b1361be6df
    Update README.md imClumsyPanda 2023-08-10 09:45:41 +08:00
  • b9da9cdcb5
    Add files via upload imClumsyPanda 2023-08-10 09:45:15 +08:00
  • 6c2b2b7ba2 测试llm_api_shutdown.py,通过 hzg0601 2023-08-10 09:38:45 +08:00
  • 6019671080
    Update README.md imClumsyPanda 2023-08-10 08:15:27 +08:00
  • a3e724281e
    Update README.md imClumsyPanda 2023-08-10 08:14:29 +08:00
  • 53fef3a7e9 add streamlit-aggrid to requirements liunux4odoo 2023-08-10 07:50:24 +08:00
  • 8df00d0b04 add SCORE_THRESHOLD to faiss and milvus kb service imClumsyPanda 2023-08-10 00:36:51 +08:00
  • 1a112c6908 update fastch_chat: disable streaming in swagger besides streaming in ApiRequest liunux4odoo 2023-08-09 23:48:41 +08:00
  • d67e354276 update model_config.py.example and README.md imClumsyPanda 2023-08-09 23:45:27 +08:00
  • dd26f552db update model_config.py.example imClumsyPanda 2023-08-09 23:39:05 +08:00
  • 02b9d57072 update textsplitter and pdfloader imClumsyPanda 2023-08-09 23:36:28 +08:00
  • 222689ed5b update kb and search chat: disable streaming in swagger besides streaming in ApiRequest liunux4odoo 2023-08-09 23:35:36 +08:00
  • ca49f9d095 Merge branch 'dev_fastchat' of https://github.com/chatchat-space/langchain-ChatGLM into dev_fastchat hzg0601 2023-08-09 23:24:44 +08:00
  • be7d31416c update model_config.py.example hzg0601 2023-08-09 23:24:17 +08:00
  • 168323ab41 update README.md imClumsyPanda 2023-08-09 23:20:40 +08:00
  • 66ff913bb4 Merge branch 'dev_fastchat' of https://github.com/chatchat-space/langchain-ChatGLM into dev_fastchat hzg0601 2023-08-09 23:18:54 +08:00
  • 3e9d088cd9 update server hzg0601 2023-08-09 23:18:44 +08:00
  • 34bb681db1 删除shell脚本 hzg0601 2023-08-09 23:17:51 +08:00
  • 8a34c3f163 增加停止服务的python脚本 hzg0601 2023-08-09 23:16:02 +08:00
  • 24a280ce8c re-add zh_title_enhance.py imClumsyPanda 2023-08-09 23:09:24 +08:00
  • 1b70fb5f9b update faiss_kb_service.py imClumsyPanda 2023-08-09 22:57:36 +08:00
  • db29a2fea7 update knowledge_base_chat and search_engine_chat: yield chinese correctly liunux4odoo 2023-08-09 22:54:37 +08:00
  • ba3335efb8 update llm_api: move fastchat logs to LOG_PATH liunux4odoo 2023-08-09 22:43:45 +08:00
  • 0a95c32f06 update README.md imClumsyPanda 2023-08-09 22:20:34 +08:00
  • 22260af16f update README.md and INSTALL.md imClumsyPanda 2023-08-09 22:04:28 +08:00
  • 450b23c4f2 update knowledge base management api and ui liunux4odoo 2023-08-09 22:00:33 +08:00
  • 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 liunux4odoo 2023-08-09 21:57:40 +08:00
  • 323fc13d4c make parameter examples available in openapi docs liunux4odoo 2023-08-09 18:15:14 +08:00
  • 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 liunux4odoo 2023-08-09 16:52:04 +08:00
  • 25280e0cea update webui: use history_len as pairs of conversation liunux4odoo 2023-08-09 14:11:10 +08:00
  • 4da7c04859 fix: parse history parameter to correct type liunux4odoo 2023-08-09 12:09:45 +08:00
  • 973d3097e7 fix webui_pages/utils.py: support history parameter for chat_chat liunux4odoo 2023-08-09 11:00:22 +08:00
  • 9883341924 update server.chat.*: set default value [] to history parameter. liunux4odoo 2023-08-09 10:48:37 +08:00
  • 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 liunux4odoo 2023-08-09 10:46:01 +08:00
  • ec76adc81d update knowledge base management ui liunux4odoo 2023-08-08 23:58:44 +08:00
  • 532ed81ecf add functions to get kb and doc details from db liunux4odoo 2023-08-08 23:57:39 +08:00
  • 717ddf4d10 add history to chat apis imClumsyPanda 2023-08-08 23:56:27 +08:00
  • c17572b6a6 add history to chat apis imClumsyPanda 2023-08-08 23:55:27 +08:00
  • 2d49746a8d add history to chat apis imClumsyPanda 2023-08-08 23:54:51 +08:00
  • c8b6d53ede add llmchain_with_history.py as example imClumsyPanda 2023-08-08 22:14:58 +08:00
  • 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 liunux4odoo 2023-08-08 21:47:20 +08:00
  • 2b0f8caa62 improve recreate_vector_store: 1. allow empty knowledge base 2. skip unspported files instead of exception liunux4odoo 2023-08-08 17:59:41 +08:00
  • e918244159 move KBServiceFactory to server.knowledge_base.kb_service.base liunux4odoo 2023-08-08 17:41:58 +08:00
  • 444e1afad5 remove server/knowledge_base/knowledge_file.py liunux4odoo 2023-08-08 16:51:37 +08:00
  • c4a3995310 move commonto tools from kbservice.base to server.knowledge_base.utils liunux4odoo 2023-08-08 16:40:18 +08:00
  • 584e3a9234 remove server/knowledge_base/knowledge_base_factory.py liunux4odoo 2023-08-08 16:21:00 +08:00
  • 7e07f0bbf4 move configs to configs.model_config liunux4odoo 2023-08-08 15:56:32 +08:00
  • 79be21521a 补充SQLAlchemy==2.0.19版本 zqt 2023-08-08 14:29:08 +08:00
  • b61e0772c9 使用orm操作数据库 zqt 2023-08-08 14:25:55 +08:00
  • 41fd1acc9c Merge remote-tracking branch 'origin/dev_fastchat' into dev_fastchat zqt 2023-08-08 14:06:13 +08:00
  • 82494aec00 Merge branch 'dev_fastchat' of github.com:chatchat-space/langchain-ChatGLM into dev_fastchat hzg0601 2023-08-08 13:39:31 +08:00
  • 360bd0a559 update llm_api_sh.py hzg0601 2023-08-08 13:39:19 +08:00
  • 0746272525 remove server/knowledge_base/knowledge_base.py liunux4odoo 2023-08-08 13:36:20 +08:00
  • 40b6d1f178 add python-magic-bin to requirements on windows. or document loader failed at from unstructured.partion.auto import partion on windows liunux4odoo 2023-08-08 12:03:33 +08:00
  • de8db40f4b BaseChatOpenAIChain,支持基础的ChatOpenAI对话的Chain接入 glide-the 2023-08-07 23:05:54 +08:00
  • 823eb06c5d BaseChatOpenAIChain,支持基础的ChatOpenAI对话的Chain接入 glide-the 2023-08-07 22:57:13 +08:00
  • 08493bffbb add a basic knowledge base management ui. liunux4odoo 2023-08-07 21:00:55 +08:00
  • 035a199c32 update kb_server.base imClumsyPanda 2023-08-07 20:48:06 +08:00
  • c981cdb042 update model_config.py.example imClumsyPanda 2023-08-07 20:41:32 +08:00
  • 44c713ef98 use KBServiceFactory to replace all the KnowledgeBase. make KBServiceFactory support embed_model parameter. rewrite api: recreate_vector_store. fix some bugs. liunux4odoo 2023-08-07 20:37:16 +08:00
  • e666e0d0be Merge remote-tracking branch 'origin/dev_fastchat' into dev_fastchat zqt 2023-08-07 17:07:19 +08:00
  • 0f46185cfb
    添加Milvus库 (#1011) zqt996 2023-08-07 16:56:57 +08:00
  • 08cf2915bb 添加Milvus库 zqt 2023-08-07 16:42:49 +08:00
  • 72951d95fb 添加milvus库支持 zqt 2023-08-07 16:32:34 +08:00
  • df9b539f74
    Update README.md imClumsyPanda 2023-08-07 10:40:35 +08:00
  • 2a17f7ff10
    Add files via upload imClumsyPanda 2023-08-07 10:40:11 +08:00
  • 18d31f5116 add KBService and KBServiceFactory class imClumsyPanda 2023-08-06 23:43:54 +08:00
  • 06af3f4c5e BaseChatOpenAIChain,支持基础的ChatOpenAI对话的Chain接入 glide-the 2023-08-06 22:57:57 +08:00
  • b91d96ab0c update kb_doc_api.py imClumsyPanda 2023-08-06 18:32:10 +08:00
  • d7039d05a1 update MyFAISS.py imClumsyPanda 2023-08-06 16:49:52 +08:00
  • 0ad63aee63
    Update FAQ.md (#1006) YikunHan 2023-08-06 16:39:58 +08:00
  • a447529c2e update kb_doc_api.py imClumsyPanda 2023-08-05 23:35:20 +08:00
  • 8773149a3e update api.py imClumsyPanda 2023-08-05 23:12:17 +08:00
  • 7f89efee4b fix kb_doc_api.py imClumsyPanda 2023-08-05 23:01:56 +08:00
  • 3f045cedb9 1. add add_doc and list_docs to KnowledgeBase class 2. add DB_ROOT_PATH to model_config.py.example imClumsyPanda 2023-08-05 22:57:19 +08:00
  • 313e590961 update DocumentLoader in knowledge_file.py imClumsyPanda 2023-08-05 21:51:07 +08:00
  • f68e432570 update table_name and column_name in SQL imClumsyPanda 2023-08-05 21:02:14 +08:00
  • cd0f2a2c41 update class method of KnowledgeBase and KnowledgeFile imClumsyPanda 2023-08-05 20:52:14 +08:00
  • 14a5de6a29 update class method of KnowledgeBase and KnowledgeFile imClumsyPanda 2023-08-05 13:51:05 +08:00
  • 7beeaacea6 update class method of KnowledgeBase and KnowledgeFile imClumsyPanda 2023-08-05 13:48:55 +08:00
  • e8a88f174d update class method of KnowledgeBase and KnowledgeFile imClumsyPanda 2023-08-05 13:48:30 +08:00
  • 206261cd0c update class method of KnowledgeBase and KnowledgeFile imClumsyPanda 2023-08-05 13:46:00 +08:00
  • 6c7adfbaeb change kb_api functions with KnowledgeBase class method imClumsyPanda 2023-08-05 03:15:41 +08:00
  • 7e1472a95b add KnowledgeBase class imClumsyPanda 2023-08-05 00:10:10 +08:00
  • 590367a5b5 add KnowledgeFile class imClumsyPanda 2023-08-04 23:54:26 +08:00
  • 515dcc1b5f update MyFAISS.py and cli_demo.py imClumsyPanda 2023-08-04 23:27:13 +08:00
  • c987a95c92 Merge remote-tracking branch 'origin/master' imClumsyPanda 2023-08-04 23:26:50 +08:00
  • 2eb35291b2 update MyFAISS.py and cli_demo.py imClumsyPanda 2023-08-04 23:26:42 +08:00
  • 775d46fecf format update in knowledge_base/utils.py imClumsyPanda 2023-08-04 23:14:43 +08:00
  • bc3ee83910 update kb_doc_api.py imClumsyPanda 2023-08-04 22:22:48 +08:00
  • 5d1a0ec15d add recreate_vector_store to kb_doc_api, and the router in api.py. liunux4odoo 2023-08-04 20:26:14 +08:00
  • 46c7d8d169 allow kb_doc_api.upload_doc to override existed file by parameter. update_doc is not needed. liunux4odoo 2023-08-04 15:53:44 +08:00
  • b4f80ca370 update server.knowledge_base.utils imClumsyPanda 2023-08-04 15:32:42 +08:00
  • 7bfbe18011 update requirements.txt and kb_doc_api.py imClumsyPanda 2023-08-04 15:12:14 +08:00