AI > Fine-tune AI

Learn how Fine-tune AI in Draxlr lets you describe tables and fields and choose which tables and fields the AI can use, so it generates more accurate SQL for your data.

Fine-tune AI lets you add descriptions to your tables and fields, and choose which tables and fields Draxlr AI is allowed to use. This gives the AI the business meaning behind your schema so it can generate more accurate, relevant SQL.


What is Fine-tune AI?

Fine-tune AI is schema-level context you provide to Draxlr AI. For each table you can:

  • Add a table description: explain what the table represents in plain language
  • Toggle Include in AI for the table: control whether Draxlr AI can use the table at all
  • Add field descriptions: explain what individual fields mean and how they are used
  • Toggle Include in AI for each field: hide individual fields from Draxlr AI while keeping the rest of the table available

Without this, AI relies only on table and field names. With it, the AI understands intent and stays away from the tables and fields you would rather keep out of its answers.


How to Use Fine-tune AI

  1. Open Draxlr AI and go to Fine-tune AI.
  2. Use Search Table to find a table, then select it from the list (tables are grouped by schema).
  3. Click Add table description to explain what the table represents in simple terms, and press Enter to save.
  4. Use the table's Include in AI toggle to control whether Draxlr AI can use this table. Turn it off for tables the AI should ignore.
  5. Search or scroll the fields, click a field to add a short description of what it means and how it is used, then press Enter to save.
  6. Use the Include in AI toggle next to a field to hide just that field from Draxlr AI. Hidden fields are marked Hidden from AI.
  7. Repeat this for the important tables and fields that you frequently query.

Once added, these descriptions are automatically used by the AI when generating SQL, choosing joins, applying filters, and naming charts.


Hiding tables and fields from AI

Tables and fields with Include in AI turned off are left out of everything Draxlr AI sees, and are blocked in the SQL it writes. If a question can only be answered with hidden data, the AI replies that it can't answer because the question needs data that is hidden from Draxlr AI.

Use this for sensitive fields such as emails, phone numbers, salaries or tokens, or for internal tables that would only confuse the AI.

Note:

When a table's Include in AI toggle is off, its field toggles are disabled, because the whole table is already hidden. Hiding a table or field only affects Draxlr AI; it is still available in the Query Builder and Raw SQL to users who have access to it.


Tips

  • Start with core business tables like orders, users, payments, or events.
  • Turn off Include in AI for system, auth, or migration tables the AI should never touch.
  • Hide sensitive fields individually instead of hiding a whole table the AI still needs.
  • Keep descriptions short and clear, as if explaining to a teammate.
  • Explain business meaning, not technical details.
  • Clarify fields with ambiguous names (e.g., status, type, code).
  • Add context for IDs and foreign keys to help AI choose correct joins.
  • Update descriptions when schema or business logic changes.