feat(ChatExcel): ChatExcel example file (#699)

add example excel file use to test ChatExcel
This commit is contained in:
Aries-ckt 2023-10-20 10:09:06 +08:00 committed by GitHub
commit 8afe08d18d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 9 deletions

View File

@ -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/)
![Uninstall Plugin](https://github.com/eosphoros-ai/DB-GPT/blob/82d8e4f3bd74bfe7f19b96e51d3483f382227bed/assets/chat_agent/agent_hub_2.png)

View File

@ -63,7 +63,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:

View File

@ -88,5 +88,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)