Skip to main content
Bytebase sends the following to the configured AI provider:
  • Your messages and the conversation so far.
  • The schema of the current database: table names, and column names, types, and comments. Large schemas are truncated.
  • For Explain SQL and Find problems, the SQL statement.
Query results are not sent. See What Bytebase sends to the AI provider.
Here is a video demoing this feature:

Setup

Enable AI Assistant. Afterward, an AI Assistant button (OpenAI logo) appears on the SQL Editor toolbar. Clicking it toggles the AI Assistant sidebar. sql-editor-text-to-sql

Text2SQL

Use natural language to compose SQL and execute. sql-editor-text-to-sql

Explain SQL

For complex statements like stored procedures, you can ask AI Assistant to explain. explain-sql

Find problem

AI Assistant can spot SQL problems. find-problem