doc:chatdb document

This commit is contained in:
aries_ckt
2023-08-18 18:00:22 +08:00
parent 2ae2e3c4a7
commit a76f68239e
2 changed files with 71 additions and 40 deletions

View File

@@ -1,16 +1,36 @@
ChatData & ChatDB
==================================
ChatData generates SQL from natural language and executes it. ChatDB involves conversing with metadata from the Database, including metadata about databases, tables, and fields.![db plugins demonstration](../../../../assets/chat_data/chat_data.jpg)
ChatData generates SQL from natural language and executes it. ChatDB involves conversing with metadata from the
Database, including metadata about databases, tables, and
fields.![db plugins demonstration](../../../../assets/chat_data/chat_data.jpg)
### 1.Choose Datasource
If you are using DB-GPT for the first time, you need to add a data source and set the relevant connection information for the data source.
If you are using DB-GPT for the first time, you need to add a data source and set the relevant connection information
for the data source.
```{tip}
there are some example data in DB-GPT-NEW/DB-GPT/docker/examples
you can execute sql script to generate data.
```
#### 1.1 Datasource management
![db plugins demonstration](../../../../assets/chat_data/db_entry.png)
#### 1.2 Connection management
![db plugins demonstration](../../../../assets/chat_data/db_connect.png)
#### 1.3 Add Datasource
![db plugins demonstration](../../../../assets/chat_data/add_datasource.png)
### 2.ChatData
After successfully setting up the data source, you can start conversing with the database. You can ask it to generate SQL for you or inquire about relevant information on the database's metadata.
After successfully setting up the data source, you can start conversing with the database. You can ask it to generate
SQL for you or inquire about relevant information on the database's metadata.
![db plugins demonstration](../../../../assets/chat_data/chatdata_eg.png)
### 3.ChatDB