AI > Context

Add Meaning to your SQL Data

Draxlr AI uses Context to better understand your database and generate more accurate, meaningful SQL queries. Context helps the AI interpret what your data represents, not just how it is structured.


What is Context?

Context is additional human-readable information you provide to Draxlr AI about your database schema. It includes:

  • Table descriptions
  • Field (column) descriptions

These descriptions explain the business meaning of tables and fields, helping Draxlr AI generate accurate insights.

Without context, AI relies only on table and column names. With context, it understands intent.


How to Use the AI Context Feature?

The AI Context feature helps Draxlr’s AI better understand your database by adding human readable descriptions to tables and fields. This improves the accuracy of generated SQL queries, charts, and insights.

To use AI Context:

  1. Open Draxlr AI and click on Manage Context.
  2. Select a table from the left sidebar.
  3. Click Add table description to explain what this table represents in simple terms.
  4. Press Enter to save the table description.
  5. Click on any field and add a short description describing what the field means and how it is used.
  6. Press Enter to save the field description.
  7. Repeat this for 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.


Tips

  • Start with core business tables like orders, users, payments, or events.
  • 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.