Loading the documentation…

Model AI

Model AI is an assistant panel beside a semantic model. Ask it to read, check and change the model's measures, columns and calculated columns, tables, relationships and field parameters, decide how its changes are approved, and undo them when needed.

Two things shape everything else. First, Model AI works on one model: the one its panel sits beside. It reads that model's objects afresh as it works, and it does not reach into other models or around the model into the database. Second, its changes are live: there is no draft copy waiting for a save, so a change takes effect at once, and every change can be undone afterwards.

Open Model AI

  1. Click DataPrism in the sidebar and open a saved semantic model.
  2. On the right edge of the screen, click the Model AI strip. The panel starts folded, and DataMind OS remembers whether it is open in this browser.

Model AI also opens beside a report, for the model that report reads from. It appears only when a saved model is selected. Each model has one chat, shared by everyone who can edit the model.

Choose how changes are approved

Two settings control Model AI:

SettingWhat it doesDefault
Acceptance modeSets which changes wait for your approval.Auto-accept
ModelRuns the chat on Kartlos Premium or Kartlos Standard.Kartlos Premium

Click the mode chip in the message box to change the acceptance mode. The picker explains each mode:

Your choice is saved with that model's chat, and each editor of a shared chat sets their own.

Warning

Unrestricted applies deletions and relationship changes without asking. Use Manual until you have checked how Model AI works on your model.

Review and approve a change

  1. Type your request in the message box. To show Model AI something, attach a screenshot; only images can be attached.
  2. When a change needs you, its card shows Model change needs your approval.
  3. Click Approve to apply it, or click Reject. In the reason box, add a reason if you want Model AI to know why, then click Confirm reject. Click Cancel to close the box without rejecting. A rejected change is not made: "An editor of this model rejected this change, so it was NOT made."

An approval shows what it will change before you decide:

Long lists are cut to their first 20 entries. While a change waits for your approval, the answer stops at the card and the change is not made: the message reads "Awaiting human approval. This change has NOT been made." You cannot send a new message until you approve or reject it. A rejected change was not made; say why you rejected it, and Model AI can propose something different.

Model AI can change eight kinds of object: measures, columns, BI tables, relationships, the model itself, measure folders, field parameters and measure tests. Its changes are creates, updates, deletes, additions, removals, renames and replacements. Columns include calculated columns, which it can also create, re-check and delete (Work with calculated columns). To learn about the objects it changes, read Measures, Calculated columns and Relationships and the core table.

Versions, unsaved edits and tests

Row-level security and the numbers you see

How much one message can do

Model AI answers each message you send in a number of steps. Every message works within fixed budgets:

See what Model AI is doing

While a turn runs, the panel streams what Model AI is doing, for example Reading the model outline, Reading your editor, Checking the model, Running measure tests, Querying the model, Previewing "T", Running SQL, Estimating the cost of a query, Creating 3 measures and Replacing a BI table source. A tool the panel does not know shows its own name.

One turn runs at a time in the chat. While a turn runs, the chat names the person behind it and shows Thinking Ns while it waits, then Thought for Ns. A message sent in the meantime is refused: "Your previous turn in this chat is still running. Stop it or wait for it to finish, then send again."

Read the result of a change

Each change card shows what happened to every object it touched:

Read result cards

A reply can carry the results of work Model AI did for you: a table result card for a query it ran, and a tests card for measure tests it ran.

A table result card shows the rows a query returned.

A tests card summarises a measure test run.

To run tests yourself and follow their saved results, see Measure tests.

Work with calculated columns

Model AI reads calculated columns, including their expressions, whether they are broken and which measures use them, and it changes them under the same rules as the calculated column editor. A refusal names the rule.

While it works, the panel shows lines such as Previewing "Margin", Creating 2 calculated columns, Changing 1 calculated column and Re-checking the red calculated columns.

Each change card lists the columns as calculated column · create, calculated column · update or calculated column · delete, with the expression, or the old and the new expression side by side, the detected type marked valid or broken, and the settings that changed. After a new expression saves, the measures that use the column are checked again, and the card names them under Measures that turned red and Measures that work again. Open in editor opens a saved column in the Edit calculated column dialog, and the panel icon in the card's header opens the whole result in a side panel.

Which calculated column changes wait for your approval:

ChangeAuto-acceptManualUnrestricted
Preview a draftRuns without askingRuns without askingRuns without asking
Create, change the other settings, or change the expression of a column nothing usesSaved without askingWaitsSaved without asking
Change the expression of a column that charts, report filters, measures, field parameters or another column's Sort by useWaitsWaitsSaved without asking
Turn off In report on a column that charts or report filters useWaitsWaitsSaved without asking
Re-checkRuns without askingWaitsRuns without asking
DeleteWaitsWaitsDeleted without asking

The approval for a new expression shows the old and the new expression, the reports and charts that use the column, and, for up to two columns, the type the new expression returns and the measures the save checks again. The approval for a delete shows the removed expression, the measures that turn red, the Sort by pairings that go, and the charts, report filters and field parameters that keep the name.

Revert an AI change

  1. Under a change card, click Revert. To undo everything from one reply, click Revert this turn under that reply. It appears once the reply has finished.
  2. In the dialog, click Revert. The dialog warns that changes are undone in reverse order and that objects someone changed since are skipped and listed.
  3. To find older changes, open the model's History tab and go to the AI changes section.

Reverts run in reverse order. If someone changed an object after the AI did, that object is skipped and listed in the result, and the summary reads, for example, Reverted by {name}: 2 reverted, 1 skipped, 0 failed. If a revert fails, a Revert failed message appears. Reverting needs the same permissions as using Model AI.

A revert never overwrites work done after the AI's change, so it leaves some objects alone; each skipped object carries its reason, and the result lists every object as reverted, skipped or failed. The usual reasons:

Some changes cannot be reverted. The chat says Nothing to revert in this turn. when a reply made no changes, This change was already reverted. for a second attempt on the same change, This change was rejected, so nothing was made. for a rejected change, This change has nothing to revert. for a change with nothing to undo, No AI changes were found for this semantic model. on a model with no AI changes, and This change cannot be reverted: removing a BI table is permanent. for a removed BI table; a change that cannot be found reads AI change not found, so reopen the section and try again. Further refusals: Changes cannot be reverted from an impersonated session. while you view the platform as another user, and A turn is still running in this model's AI chat. Try again when it finishes. while a turn runs. While a change waits for approval, reverting is refused until you decide. For the change history of a model, see Check, document and trace a model.

Check a query's cost

Ask Model AI to check a query's cost. The result card rates the query Fast, Watch or Slow, and shows Rows read, Bytes read and Peak memory. The card marks its figures as approximate when the database cannot give an exact estimate. For the full cost check, see Query cost.

When a Model Builder is working

A Model Builder is a builder Mind that works on the model. While it runs, a banner appears above the chat.

To learn how builder Minds work, read Warehouse Builder and Lake Builder. For the session card in the builder chat, see Model Builder sessions; for how a builder's changes are approved and its questions answered, see Model Builder approvals.

Permissions

Model AI needs all three of these permissions. Without any of them, the panel does not appear.

PermissionWhat it lets you do
Use DataPrism AIUse Model AI, approve its changes and revert them.
View DataPrism Semantic ModelsSee the semantic model.
Edit DataPrism Semantic ModelsChange the semantic model, including through Model AI.

You also need edit rights on the particular model you are working on. Everyone who passes these gates shares the model's one chat, and any of them can approve or reject a change. For the full list, see Who can do what in DataPrism.

Limits and edge cases

Questions, answered

Does Model AI work on more than one model?

No. Each panel is bound to the one model it sits beside, and Model AI changes only that model. It reads the model's objects afresh as it works, and it does not touch other models or read around the model into the database.

Will Auto-accept change measures or calculated columns my charts use?

No. Changes to measures that charts use wait for your approval, and so does a new expression for a calculated column that charts, report filters, measures, field parameters or another column's Sort by use. Deletions, relationship and fact-table changes, and changes to tests a person wrote also wait.

Can I undo a change Model AI made?

Yes. Click Revert under a change to undo that change, or Revert this turn under a reply to undo all its changes. If someone has changed an object since the AI changed it, that object is skipped and listed. Older changes live in the model's History tab, under AI changes.

What do "skipped" and "not attempted" mean on a change card?

skipped means the change was left out on purpose, and not attempted means Model AI stopped before reaching it, for example because an earlier object failed. Hover either chip to read the message behind it.

Can two people use one model's Model AI at the same time?

They share the chat, but one turn runs at a time. While a turn runs, the chat names the person behind it, and a message sent meanwhile is refused until the turn stops or finishes.

I do not see the Model AI panel. Why?

You need Use DataPrism AI, View DataPrism Semantic Models and Edit DataPrism Semantic Models, and you must have a saved model selected. Ask your administrator for any permission you lack.

Why did my message not send while a builder was working?

It is queued instead. The chat delivers it when the round ends; to cancel it, click Remove under the queued message.

Why do I see only some of the rows in a result card?

The table card shows the first 20 rows of the result. Click Show N more rows to see the rest. If the card shows truncated, the run itself was cut short and did not return every row.

Why does a result card say "RLS not applied"?

It warns that this run did not apply row-level security, so the card's rows are not narrowed the way they are in your reports. Treat its numbers as wider than what you normally see. See Row-level security and View as.

Why did my measure save get refused?

The tests blocked it. When a measure's SQL changes, the tests of that measure and of the measures that depend on it run first against the new SQL. A test that fails, errors or cannot run refuses the whole save and the tests are listed; nothing is stored until they pass.

What happens if someone edits an object while Model AI is working on it?

The write is refused instead of overwriting the newer state. Every write carries the version Model AI last read, and an object changed since fails that check; Model AI continues from the fresh version.

How much can one message do?

At most 20 tool calls in each step Model AI takes; across the whole message, up to 240 objects written and 12 in a single change, 80 data calls of 500 rows each and 400,000 characters of data; a whole-model read capped at 150,000 characters. Query-cost checks have their own budget of 40 estimates, 24 measurements, 6 analyses and 10 what-if runs.