mirror of
https://github.com/csunny/DB-GPT.git
synced 2025-08-01 16:18:27 +00:00
feat(ChatExcel): ChatExcel example file (#699)
add example excel file use to test ChatExcel
This commit is contained in:
commit
8afe08d18d
@ -1,25 +1,24 @@
|
|||||||
ChatAgent
|
ChatAgent
|
||||||
==================================
|
==================================
|
||||||
ChatAgent can automatically select the right tool to answer and solve user problems through LLM.
|
ChatAgent can automatically select the right tool to answer and solve user problems through LLM.
|
||||||

|

|
||||||
|
|
||||||
### 1.Update Plugins From Git
|
### 1.Update Plugins From Git
|
||||||
Update the latest plug-in information from the DB-GPT official plug-in repository.
|
Update the latest plug-in information from the DB-GPT official plug-in repository.
|
||||||

|

|
||||||
|
|
||||||
### 2.Install Plugin
|
### 2.Install Plugin
|
||||||
Install the plugin you want to use from the list of agent hub plugins.
|
Install the plugin you want to use from the list of agent hub plugins.
|
||||||

|

|
||||||
|
|
||||||
|
|
||||||
### 3.Upload My Local Plugin File
|
### 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.
|
If you want to use a private plug-in developed by yourself, you can upload the plug-in first and then use it.
|
||||||

|
|
||||||
|
|
||||||
### 4.Select installed plug-ins dialog
|
### 4.Select installed plug-ins dialog
|
||||||
Select an installed plugin to have a conversation.
|
Select an installed plugin to have a conversation.
|
||||||

|

|
||||||
|

|
||||||
|
|
||||||
### 5.Uninstall My Plugin
|
### 5.Uninstall My Plugin
|
||||||
Uninstall plugins you no longer need.
|
Uninstall plugins you no longer need.
|
||||||

|

|
@ -63,7 +63,6 @@ class ChatAgent(BaseChat):
|
|||||||
|
|
||||||
def stream_plugin_call(self, text):
|
def stream_plugin_call(self, text):
|
||||||
text = text.replace("\n", " ")
|
text = text.replace("\n", " ")
|
||||||
print(f"stream_plugin_call:{text}")
|
|
||||||
return self.api_call.run(text)
|
return self.api_call.run(text)
|
||||||
|
|
||||||
def __list_to_prompt_str(self, list: List) -> str:
|
def __list_to_prompt_str(self, list: List) -> str:
|
||||||
|
@ -88,5 +88,4 @@ class ChatExcel(BaseChat):
|
|||||||
|
|
||||||
def stream_plugin_call(self, text):
|
def stream_plugin_call(self, text):
|
||||||
text = text.replace("\n", " ")
|
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)
|
return self.api_call.run_display_sql(text, self.excel_reader.get_df_by_sql_ex)
|
||||||
|
Loading…
Reference in New Issue
Block a user