From 5b1dcb37fa8526516a706ae82bcad6ec26b52957 Mon Sep 17 00:00:00 2001 From: yhjun1026 <460342015@qq.com> Date: Fri, 20 Oct 2023 09:18:20 +0800 Subject: [PATCH 1/2] feat(ChatExcel): ChatExcel example file add example excel file use to test ChatExcel --- pilot/scene/chat_agent/chat.py | 1 - pilot/scene/chat_data/chat_excel/excel_analyze/chat.py | 1 - 2 files changed, 2 deletions(-) diff --git a/pilot/scene/chat_agent/chat.py b/pilot/scene/chat_agent/chat.py index 4734c8106..6632c2097 100644 --- a/pilot/scene/chat_agent/chat.py +++ b/pilot/scene/chat_agent/chat.py @@ -53,7 +53,6 @@ class ChatAgent(BaseChat): def stream_plugin_call(self, text): text = text.replace("\n", " ") - print(f"stream_plugin_call:{text}") return self.api_call.run(text) def __list_to_prompt_str(self, list: List) -> str: diff --git a/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py b/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py index 9599c1402..4da5bc0dc 100644 --- a/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py +++ b/pilot/scene/chat_data/chat_excel/excel_analyze/chat.py @@ -78,5 +78,4 @@ class ChatExcel(BaseChat): def stream_plugin_call(self, text): text = text.replace("\n", " ") - print(f"stream_plugin_call:{text}") return self.api_call.run_display_sql(text, self.excel_reader.get_df_by_sql_ex) From 1937f6a4f6c9be34b569889f55d9a528beaaaf0b Mon Sep 17 00:00:00 2001 From: yhjun1026 <460342015@qq.com> Date: Fri, 20 Oct 2023 10:02:11 +0800 Subject: [PATCH 2/2] feat(ChatAgent): ChatAgent doucument add ChatAgent doucument --- .../application/chatagent/chatagent.md | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/docs/getting_started/application/chatagent/chatagent.md b/docs/getting_started/application/chatagent/chatagent.md index c0d90247d..44b0df15e 100644 --- a/docs/getting_started/application/chatagent/chatagent.md +++ b/docs/getting_started/application/chatagent/chatagent.md @@ -1,25 +1,24 @@ ChatAgent ================================== ChatAgent can automatically select the right tool to answer and solve user problems through LLM. -![ChatAgent](https://github.com/eosphoros-ai/DB-GPT/assets/13723926/) +![ChatAgent](https://github.com/eosphoros-ai/DB-GPT/blob/82d8e4f3bd74bfe7f19b96e51d3483f382227bed/assets/chat_agent/chat_agent0.png) ### 1.Update Plugins From Git Update the latest plug-in information from the DB-GPT official plug-in repository. -![Update From Github](https://github.com/eosphoros-ai/DB-GPT/assets/13723926/) +![Update From Github](https://github.com/eosphoros-ai/DB-GPT/blob/82d8e4f3bd74bfe7f19b96e51d3483f382227bed/assets/chat_agent/agent_hub_1.png) ### 2.Install Plugin Install the plugin you want to use from the list of agent hub plugins. -![Install Plugin](https://github.com/eosphoros-ai/DB-GPT/assets/13723926/) - +![Update From Github](https://github.com/eosphoros-ai/DB-GPT/blob/82d8e4f3bd74bfe7f19b96e51d3483f382227bed/assets/chat_agent/agent_hub_1.png) ### 3.Upload My Local Plugin File If you want to use a private plug-in developed by yourself, you can upload the plug-in first and then use it. -![Upload Private Plugin](https://github.com/eosphoros-ai/DB-GPT/assets/13723926/) ### 4.Select installed plug-ins dialog Select an installed plugin to have a conversation. -![Select Plugins](https://github.com/eosphoros-ai/DB-GPT/assets/13723926/) +![Select Plugins](https://github.com/eosphoros-ai/DB-GPT/blob/82d8e4f3bd74bfe7f19b96e51d3483f382227bed/assets/chat_agent/chat_agent1.png) +![Success Use](https://github.com/eosphoros-ai/DB-GPT/blob/82d8e4f3bd74bfe7f19b96e51d3483f382227bed/assets/chat_agent/chat_agent2.png) ### 5.Uninstall My Plugin Uninstall plugins you no longer need. -![Uninstall Plugin](https://github.com/eosphoros-ai/DB-GPT/assets/13723926/) \ No newline at end of file +![Uninstall Plugin](https://github.com/eosphoros-ai/DB-GPT/blob/82d8e4f3bd74bfe7f19b96e51d3483f382227bed/assets/chat_agent/agent_hub_2.png) \ No newline at end of file