Data protection and AI models
Some data should not be sent to an AI model, whoever the provider is: a patient's diagnosis, an employee's salary, a contract nobody outside has seen. Data protection decides, for each data source, which values may reach a model.
It does not change what people see. Someone who may query a table still queries it from the chat and sees the result; the model that helped them write the query does not receive the values.
Protection is set by administrators in Admin › Governance › Data protection. A data source nobody protects works as before.
What reaches a model
| Reaches a model | |
|---|---|
| Names of schemas, tables and columns, and their descriptions | Yes, always |
| Values of what is approved, or not marked | Yes |
| Values of what is protected | No |
| How many rows a table has, or how many of them have a value in a protected column | Yes, if the table reaches it |
| A total, an average, a minimum or anything else worked out from a protected column | No |
| Rows chosen, grouped or ordered by a protected column | No rows, and not how many there are: with them, the values could be guessed |
| A query Qry cannot analyse | Nothing |
| An error message of the engine | Not when it could quote a value |
When a result only reaches a model in part, the chat says which columns the model did not receive. The whole result is shown to the person who asked, and kept for them for 24 hours (an administrator can change it).
In a protected data source, queries written by the model have to name each table with its schema.
Two ways to protect
Only what is approved. Nothing reaches a model until you approve a domain, a schema, a table or a column. Tables and columns that appear later wait for a decision. Choose it when most of the data is sensitive.
Hide what is marked. Everything reaches a model except what you mark. Columns that appear later reach it, unless their name suggests personal or health data: those wait. Choose it when little of the data is sensitive, and someone looks after what is new.
In both, what is classified as personal, health or confidential does not reach a model, even when its table is approved. An exception is made for a single column, by name.
Protecting a data source
- In Admin › Governance › Data protection, choose Protect next to the data source.
- Choose one of the two ways. Qry proposes a class for the columns whose names suggest personal or health data: answer those it is not sure about. Look at the tables of people it lists too, because a field called
ZZ_01can be somebody's income. - See what would change: Qry judges the answers of the last 30 days again, and says how many the model could not have commented on. You can try a query and compare what the person and the model would receive.
- Accept what it does not cover, give a reason and confirm.
Nothing is applied before the last step. Once confirmed, the results saved from that data source are deleted, and earlier answers are not told to a model again.
Marks of your own catalog
If your catalog already marks sensitive columns, Qry reads them before you confirm, and then every night:
| Catalog | What Qry reads |
|---|---|
| Unity Catalog | Column tags, column masks and table tags |
| BigQuery | Policy tags, from the metadata API |
| SQL Server | Data classification (labels and information types), and the extended properties older versions keep |
| DataHub | Tags and glossary terms of columns and of tables |
A column marked there is proposed: it does not reach a model until an administrator confirms the class or dismisses it. What an administrator dismissed is not proposed again, and taking a mark away in your catalog does not take it away in Qry.
A tag on a whole table does not say which columns hold what it says, so all of them wait. You answer once, for the table: Qry ticks the columns that look so by their name, you choose, and the others are not of that class.
SQL Server shows its classification only to a user with the VIEW ANY SENSITIVITY CLASSIFICATION permission. Grant it to the user Qry connects with; without it, Qry says the classification could not be read.
When a catalog cannot be read, Qry says so, and you have to accept it to go on.
Qry never starts a Databricks warehouse to read its marks. If it is stopped at night, Qry reads them with the next query a model makes, once the warehouse is running and before the model receives any of the result. It does so at most every 12 hours, so a column marked in Unity Catalog can take up to half a day to stop reaching a model. If that reading fails, the query goes on and administrators are told. Read the catalog's marks reads them at once.
Views
A view is what it reads. If a column is protected, so is every column of a view that comes from it. Where everything reaches a model except what is marked, a view Qry cannot analyse waits for your decision. The views of Cloudera are not read.
What stops working
While any data source is protected:
- A model does not start what reads or writes protected data: pipelines, jobs, copies, notebooks or machine learning. People still do.
- A model does not run Python or Spark code that could read it, in the whole installation.
- Functions of the engine that call an AI model (such as
ai_queryorML.GENERATE_TEXT) do not run on that data source, for anyone.
On engines whose queries Qry cannot analyse (Salesforce, Kafka), nothing of a protected data source reaches a model.
Programs that read it through Nexus
Qry cannot see what is behind an application's key, so every Nexus key reads as a model: it gets an error where it asks for protected values. An administrator can say that a key is of a program, and then it receives them, from today's products of that data source and from those it is granted later. If the key is regenerated, changes hands or changes the addresses it works from, it has to be confirmed again.
Do it only if no AI model reads with that key. Assistants connected through MCP and people's own tokens always read as a model.
The check
Every night, and whenever you ask, Qry tests the protection with invented data. It does not query your engine.
- Passed: none of the tests delivered a value it should not.
- Failed: from then on, no value of that data source reaches a model until a check passes. Administrators are told.
- Could not run: administrators are told, and each query is still judged.
Letting more reach a model
Only an administrator can, and with a reason. Qry shows what would start to reach the model, and asks for the data source's name. The other administrators are told. What a provider receives from then on cannot be taken back.
The record
Every decision is in the change record, with who made it, when and why. Every time something is kept from a model, Qry notes who asked, from where, which model and which columns, and never a value nor the query. Those notes are kept for a year.
Report for the DPO gathers both for a period, with the models in use and what the protection does not cover. It can be printed or saved as PDF, and its tables downloaded as CSV.
What it does not cover
- What a person types, dictates or uploads, or saves in a file from a notebook.
- What a provider received before the data was protected.
- External connectors left on, and other data sources that hold the same data.
- Text people have written about the data, in skills or dashboards, if it quotes values.
- Where everything reaches a model except what is marked: copies in other tables that nobody has marked, and views of the engines whose views Qry does not read.
- What a person or a program does with the data outside Qry.
- What somebody could deduce from how long a query takes.