Service

NAVI Text to SQL

Step 1: Create a Text2SQL robot

 

The robot is located in the second column of the function column. Click it to enter the robot search page. Click Create Robot to execute the corresponding robot creation function.


Step 2: Set up the Text2SQL robot

 

Text-to-SQL Robot: This robot can connect to the corresponding database and provide users with a natural language method to search for information in the database. Currently MSSQL and MySQL are provided.

Fill in the following information:

  • Commands and prompts: The prompt field can be adjusted to show the system prompts of the text-to-SQL robot. Fill in the rules you want to follow in every reply, for example: Please provide me with the SQL command for each query execution
  • Capabilities:
  • Preview: You can enter the test prompt word here to preview the robot output results
  1. Robot name: Click the edit option next to the robot name in the upper left corner to edit
  2. Import: You can fill in the Json information of the text-to-SQL robot provided by others. After filling in, you can copy the "capability" information filled in by others.
    Delete: Delete this robot.

Step 3: Use the Text2SQL robot

 

  • After setting up the robot, you can return to the robot page, find the robot you just created, and pin it. After pinning, the robot will be fixed in the function bar on the left.
  • You can click on the Text2SQL robot on the left to start a conversation. The purpose of the Text2SQL robot is to allow you to use natural language to query the content in the database. There is no need to enter complex SQL statements. It will help you query and provide SQL Statements for your reference. Common applications include pivotal analysis of accounting accounts, summary query of employee salaries, and query of historical performance distribution.