Model AI

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

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, you cannot send a new message until you approve or reject it.

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. To learn about the objects it changes, read Measures and Relationships and the core table.

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.

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 ModelChange 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

Which mode is safest?

Manual is the safest. Every change waits for your approval.

Will Auto-accept change measures my charts use?

No. Changes to measures that charts use wait for your approval. 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.

What does the impact line on an approval count?

The reports and charts the change touches. Counts in brackets, as in Impact: 3 reports, 12 charts (2 reports and 5 charts you cannot open), are the ones you cannot open yourself.

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 Model, and you must have a saved model selected. Ask your administrator for any permission you lack.

Can the AI delete a BI table without asking?

No. Removing a BI table always waits for your approval, even in Unrestricted.

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.

What does "(not saved)" mean on a tests card?

The tests ran against a measure that is not saved yet, so the run's result was not stored with the measure. Save the measure and run the tests again if you need the result kept.