ChatSQL
Input your natural language and Bytebase will convert it into SQL.
Prerequisites
Before starting, make sure you have sign up for an account on the OpenAI platform and obtain a confidential key.
Add the API key
Go to Bytebase console, click Settings > General. Scroll down to AI Augmentation, and fill in OpenAI API Key field.
Query in SQL Editor
After configuring the OpenAI key, an OpenAI icon will appear on the SQL Editor. Clicking the icon will toggle between the SQL and natural language mode.
Data privacy
In order to convert your request into an SQL query, Bytebase must provide the OpenAI platform with the tables and column names of the current database schema. However, Bytebase does not transmit any data from the tables.