Teach Insight AI your data
Insight AI and AI clients only know what your tables are called and what's in them. A few sentences of description, and a handful of verified answers, turn guesses into answers your team can rely on.
Why it matters
Without context, an assistant has to guess: is revenue before or after discounts? Is a row an order or an order line? Does "last month" mean the calendar month? Each description you add is one less guess, for Insight AI and for every AI client connected through MCP.
- Data Context
- Descriptions of tables and columns in your databases. Every dataset built on the table benefits.
- Verified answers
- Questions paired with the SQL that correctly answers them. The assistant follows these instead of writing its own.
- Dataset metrics and columns
- Calculations and descriptions on a dataset. See Metrics, columns and settings.
Describe tables in Data Context
Choose the table
Open Data Context in the sidebar. Pick the database at the top, then a table in the list. Todo shows the tables still to describe.
Read the columns
Choose Read Columns & Sample Values. DataViz reads each column's type and whether it can be empty, and a sample of its distinct values, straight from the database. The assistant uses those values to filter on what really exists, so "Europe" matches Europe and not EU. After the table changes, choose Re-sync Columns.
Describe the table
Under Table Business Purpose & Granularity, say what the table holds and what one row is. The quick templates add a line to fill in: + Granularity, + Primary Key, + Business Rules.
Save
Choose Save Changes, or press Ctrl+S (⌘+S on a Mac). The status beside the table name changes to Saved.
Acme Retail order lines from January 2025: one row per product in an order.
Revenue, cost and profit are in US dollars and exclude tax and shipping.
Primary key: order_id. Returns are flagged in "returned", not removed.Describe columns
For each column, below the table description:
- Column Name & Type
- The column as the database has it.
- Display Label
- A readable name: Order date for order_date.
- Business Meaning / AI Context
- What it means, in units and plain words: "Revenue minus cost, in US dollars."
- Sample Values
- Real values read from the database. Columns that hold personal data aren't sampled, so their values never reach the AI.
AI readiness
The top of the page shows how well described the selected database is:
- Total Tables
- Tables found in the database, by schema.
- Described Tables
- How many have a description, and what share that is.
- AI Readiness
- Needs Context, Partially Grounded or Production Ready, with how many tables still need describing.
Verified answers
For questions your team asks again and again, write down the SQL that answers them correctly once. Insight AI follows a verified answer rather than inventing its own SQL, so "revenue by region last month" means the same thing every time.
Add an answer
Open Saved Queries → Verified Answers, and choose Add answer.
Write the question and the SQL
The question in plain words, the SQL that answers it, and the dataset or database it applies to. Add a note for anything subtle.
ExampleQuestion: What was our revenue by region last month? Note: Last month means the latest month with orders, not the calendar month. SELECT region, SUM(revenue) AS revenue FROM Orders WHERE order_month = (SELECT MAX(order_month) FROM Orders) GROUP BY region ORDER BY revenue DESCVerify it
Mark the answer verified once someone has checked it. The page shows how many of your answers are verified.
Dataset descriptions and metrics
Datasets carry their own description, column descriptions and metrics. A metric such as gross_margin tells the assistant exactly how margin is calculated, so its answer matches your charts. See Metrics, columns and settings.
What to write
Good descriptions
- Say what one row is: "one row per order line", "one row per customer per day".
- Give units and currency: "in US dollars", "in seconds", "as a fraction (0.1 is 10%)".
- State the rules people get wrong: "excludes tax and shipping", "cancelled orders are kept with status = 'cancelled'".
- Explain codes: "status: A = active, S = suspended, C = closed".
- Say what to use instead: "use net_revenue for finance reporting".
Avoid
- Repeating the column name: "Customer ID: the customer ID".
- Secrets or personal data in descriptions; they're sent to the AI provider.