Skip to content

Commit aec8b0d

Browse files
committed
Merge branch 'overseas' of github.com:chat2db/Chat2DB-Doc into overseas
2 parents b8eedd7 + 0833854 commit aec8b0d

13 files changed

+41
-14
lines changed
Lines changed: 26 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# AI data collection
22

3-
One of the highlights of Chat2DB's intelligent question-and-answer feature is its powerful ability to create custom AI datasets.
3+
One of the highlights of Chat2DB's intelligent question-and-answer feature is its powerful ability to create custom AI collection.
44

55
With this feature, users have the flexibility to build different sets of Q&A data, so that the content of the Q&A is highly customized, ensuring that each answer is precisely tailored to your specific needs.
66
Not only that, this process also greatly improves the intelligence level of the question and answer system and the accuracy of the answer, so that you are more comfortable in dealing with complex and changeable query scenarios.
@@ -9,28 +9,41 @@ In short, the custom AI data collection is the key to unlocking Chat2DB intellig
99

1010
## Step 1: Create an AI data collection
1111

12-
You can use each data source to create ai data sets for that data source. Tables from one or more different databases can be placed in an ai dataset.
13-
You can also right-click all tables on the Tables node under each database to add a specified table to the ai dataset.
12+
You can use each data source to create ai data sets for that data source. Tables from one or more different databases can be placed in an ai collection.
13+
You can also right-click all tables on the Tables node under each database to add a specified table to the ai collection.
1414

15-
If your table structure changes after you synchronize, you can right-click the dataset node to resynchronize.
15+
If your table structure changes after you synchronize, you can right-click the collection node to resynchronize.
1616

17-
!['sql-copilot'](/image/AI-image/create-ai-data-collection.gif)
17+
1. Create an AI data collection
18+
!['sql-copilot'](/image/AI-image/create-ai-data-collection1.png)
1819

19-
## Step 2: Modify the tag name and table comment
20+
2. Enter the name of AI data collection
21+
!['sql-copilot'](/image/AI-image/create-ai-data-collection2.png)
2022

21-
You can edit the table by double-clicking it within the ai dataset. If your business cannot modify the table name or table comment, you can modify the table name and comment as well as the field name and comment information here, so that AI can better understand your table structure and field information.
22-
This will greatly improve the accuracy of ai generation.
23+
3. Choose the database and select the tables you need.
24+
!['sql-copilot'](/image/AI-image/create-ai-data-collection3.png)
2325

24-
!['sql-copilot'](/image/AI-image/ai-data-collection-edit-table.gif)
26+
4. Sync to Al data collection
27+
!['sql-copilot'](/image/AI-image/create-ai-data-collection4.png)
28+
29+
It will take a few minutes to finish, you can close this window.
30+
31+
## Step 2: Modify the AI Column Name and AI Column Comment
32+
33+
You can edit the table by double-clicking it within the ai collection. You can not modify your origin column name and comment here, you can modify the **AI column name and comment** as well as the AI Table Name and AI Table Comment, so that AI can better understand your table structure and column information.
34+
35+
This will greatly improve the accuracy of AI generation.
36+
37+
!['sql-copilot'](/image/AI-image/create-ai-data-collection5.png)
2538

2639
## Step 3: How to use the data collection
2740

28-
Wherever you call ai, you can select AI data sets to do more precise content generation
41+
After set up the AI data collection, wherever you call AI, you can select AI data collections to do more precise content generation.
2942

3043
### Demo 1: Natural language generation SQL
3144

32-
!['sql-copilot'](/image/AI-image/ai-data-collection-text2sql.gif)
45+
!['sql-copilot'](/image/AI-image/text2sql1.png)
3346

34-
### Demo 2: Generate reports in natural language
47+
### Demo 2: Generate Dashboard in natural language
3548

36-
!['sql-copilot'](/image/AI-image/ai-data-collection-create-dashboard.gif)
49+
!['sql-copilot'](/image/AI-image/dashboard.png)

pages/docs/ai-chat/text2sql.mdx

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,18 @@ Ensure the accuracy of query results, while improving query performance and redu
99
- **Feedback and iteration**: By collecting user feedback information in real time, the system can quickly adjust the query logic to ensure that the final result meets user expectations.
1010
Enhance user experience, ensure the relevance and accuracy of query results, and promote continuous learning and improvement of the system.
1111

12-
!['openconnection'](/image/AI-image/text2sql.gif)
12+
## 1. Create a new Query console
13+
14+
![query](/image/AI-image/query.png)
15+
16+
## 2. Press '/' to invoke AI
17+
18+
![query](/image/AI-image/invoke.png)
19+
20+
![query](/image/AI-image/invoke2.png)
21+
22+
See how to [create AI data collecions](https://chat2db.ai/resources/docs/ai-chat/ai-data-collection).
23+
24+
## 3. Generate SQL
25+
26+
![query](/image/AI-image/generate.png)
25.2 KB
Loading
15.5 KB
Loading
140 KB
Loading
101 KB
Loading
85.4 KB
Loading
48.6 KB
Loading

public/image/AI-image/generate.png

34.3 KB
Loading

public/image/AI-image/invoke.png

17.7 KB
Loading

0 commit comments

Comments
 (0)