diff --git a/pages/docs/ai-chat/ai-data-collection.mdx b/pages/docs/ai-chat/ai-data-collection.mdx index 446adcce..1b869fec 100644 --- a/pages/docs/ai-chat/ai-data-collection.mdx +++ b/pages/docs/ai-chat/ai-data-collection.mdx @@ -1,6 +1,6 @@ # AI data collection -One of the highlights of Chat2DB's intelligent question-and-answer feature is its powerful ability to create custom AI datasets. +One of the highlights of Chat2DB's intelligent question-and-answer feature is its powerful ability to create custom AI collection. 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. 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 ## Step 1: Create an AI data collection -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. -You can also right-click all tables on the Tables node under each database to add a specified table to the ai dataset. +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. +You can also right-click all tables on the Tables node under each database to add a specified table to the ai collection. -If your table structure changes after you synchronize, you can right-click the dataset node to resynchronize. +If your table structure changes after you synchronize, you can right-click the collection node to resynchronize. -!['sql-copilot'](/image/AI-image/create-ai-data-collection.gif) +1. Create an AI data collection +!['sql-copilot'](/image/AI-image/create-ai-data-collection1.png) -## Step 2: Modify the tag name and table comment +2. Enter the name of AI data collection +!['sql-copilot'](/image/AI-image/create-ai-data-collection2.png) -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. -This will greatly improve the accuracy of ai generation. +3. Choose the database and select the tables you need. +!['sql-copilot'](/image/AI-image/create-ai-data-collection3.png) -!['sql-copilot'](/image/AI-image/ai-data-collection-edit-table.gif) +4. Sync to Al data collection +!['sql-copilot'](/image/AI-image/create-ai-data-collection4.png) + +It will take a few minutes to finish, you can close this window. + +## Step 2: Modify the AI Column Name and AI Column Comment + +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. + +This will greatly improve the accuracy of AI generation. + +!['sql-copilot'](/image/AI-image/create-ai-data-collection5.png) ## Step 3: How to use the data collection -Wherever you call ai, you can select AI data sets to do more precise content generation +After set up the AI data collection, wherever you call AI, you can select AI data collections to do more precise content generation. ### Demo 1: Natural language generation SQL -!['sql-copilot'](/image/AI-image/ai-data-collection-text2sql.gif) +!['sql-copilot'](/image/AI-image/text2sql1.png) -### Demo 2: Generate reports in natural language +### Demo 2: Generate Dashboard in natural language -!['sql-copilot'](/image/AI-image/ai-data-collection-create-dashboard.gif) \ No newline at end of file +!['sql-copilot'](/image/AI-image/dashboard.png) \ No newline at end of file diff --git a/pages/docs/ai-chat/text2sql.mdx b/pages/docs/ai-chat/text2sql.mdx index c1c2b375..db7aa684 100644 --- a/pages/docs/ai-chat/text2sql.mdx +++ b/pages/docs/ai-chat/text2sql.mdx @@ -9,4 +9,18 @@ Ensure the accuracy of query results, while improving query performance and redu - **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. Enhance user experience, ensure the relevance and accuracy of query results, and promote continuous learning and improvement of the system. -!['openconnection'](/image/AI-image/text2sql.gif) +## 1. Create a new Query console + +![query](/image/AI-image/query.png) + +## 2. Press '/' to invoke AI + +![query](/image/AI-image/invoke.png) + +![query](/image/AI-image/invoke2.png) + +See how to [create AI data collecions](https://chat2db.ai/resources/docs/ai-chat/ai-data-collection). + +## 3. Generate SQL + +![query](/image/AI-image/generate.png) \ No newline at end of file diff --git a/public/image/AI-image/create-ai-data-collection1.png b/public/image/AI-image/create-ai-data-collection1.png new file mode 100644 index 00000000..a59335bd Binary files /dev/null and b/public/image/AI-image/create-ai-data-collection1.png differ diff --git a/public/image/AI-image/create-ai-data-collection2.png b/public/image/AI-image/create-ai-data-collection2.png new file mode 100644 index 00000000..3e9c1d98 Binary files /dev/null and b/public/image/AI-image/create-ai-data-collection2.png differ diff --git a/public/image/AI-image/create-ai-data-collection3.png b/public/image/AI-image/create-ai-data-collection3.png new file mode 100644 index 00000000..3365b95a Binary files /dev/null and b/public/image/AI-image/create-ai-data-collection3.png differ diff --git a/public/image/AI-image/create-ai-data-collection4.png b/public/image/AI-image/create-ai-data-collection4.png new file mode 100644 index 00000000..a4b03b08 Binary files /dev/null and b/public/image/AI-image/create-ai-data-collection4.png differ diff --git a/public/image/AI-image/create-ai-data-collection5.png b/public/image/AI-image/create-ai-data-collection5.png new file mode 100644 index 00000000..f3bb4493 Binary files /dev/null and b/public/image/AI-image/create-ai-data-collection5.png differ diff --git a/public/image/AI-image/dashboard.png b/public/image/AI-image/dashboard.png new file mode 100644 index 00000000..5f92945b Binary files /dev/null and b/public/image/AI-image/dashboard.png differ diff --git a/public/image/AI-image/generate.png b/public/image/AI-image/generate.png new file mode 100644 index 00000000..1faf6df0 Binary files /dev/null and b/public/image/AI-image/generate.png differ diff --git a/public/image/AI-image/invoke.png b/public/image/AI-image/invoke.png new file mode 100644 index 00000000..c7716e14 Binary files /dev/null and b/public/image/AI-image/invoke.png differ diff --git a/public/image/AI-image/invoke2.png b/public/image/AI-image/invoke2.png new file mode 100644 index 00000000..5025ec79 Binary files /dev/null and b/public/image/AI-image/invoke2.png differ diff --git a/public/image/AI-image/query.png b/public/image/AI-image/query.png new file mode 100644 index 00000000..21a2c062 Binary files /dev/null and b/public/image/AI-image/query.png differ diff --git a/public/image/AI-image/text2sql1.png b/public/image/AI-image/text2sql1.png new file mode 100644 index 00000000..1a1ebe99 Binary files /dev/null and b/public/image/AI-image/text2sql1.png differ