Skip to content

Commit

Permalink
feat(ChatExcel): ChatExcel example file (#699)
Browse files Browse the repository at this point in the history
add example excel file use to test ChatExcel
  • Loading branch information
Aries-ckt authored Oct 20, 2023
2 parents 82d8e4f + 1937f6a commit 8afe08d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 9 deletions.
13 changes: 6 additions & 7 deletions docs/getting_started/application/chatagent/chatagent.md
Original file line number Diff line number Diff line change
@@ -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)
1 change: 0 additions & 1 deletion pilot/scene/chat_agent/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ def generate_input_values(self):

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:
Expand Down
1 change: 0 additions & 1 deletion pilot/scene/chat_data/chat_excel/excel_analyze/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,5 +88,4 @@ async def prepare(self):

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)

0 comments on commit 8afe08d

Please sign in to comment.