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.
Setup
Enable AI Assistant. Afterward, an AI Assistant button (OpenAI logo) appears on the SQL Editor toolbar. Clicking it toggles the AI Assistant sidebar.
Text2SQL
Use natural language to compose SQL and execute.
Explain SQL
For complex statements like stored procedures, you can ask AI Assistant to explain.
Find problem
AI Assistant can spot SQL problems.

