Settings and secret references
Summary
Each role says which settings it has, and the screens draw them the same way everywhere: on the tenant default, in an override dialog and under Your own setting. This page covers what you see in those forms. Which layer applies, and whose, is on Integrations and Overrides and your own setting.
Settings
- Model replaces the model the source is set up with. See Model.
- Temperature is a number from 0 to 2. SQL AI and data quality always run at 0, whatever you enter.
- Max Tokens is a number from 1 to 1,000,000 that caps the tokens a call can use. It applies to AI Insights, SQL AI, data quality, AI Studio chat that names no data source, and Knowledge Base chat. AI Studio chat that names a data source keeps that model's own limit. Blank means the model's own limit.
An administrator sets these on the tenant default or on a product override. A user who has bound a source of their own can set the same settings, Max Tokens included, for the calls that run on their own source. Those values never change which source or limits apply to anyone else.
Search index build settings
These settings on AI · embeddings control how a data source's search index is built when the source has an embedding model. A build that makes no vectors (keyword search only) never reads this role, so the role's source cannot stop it; it chunks with the source's own values, or the defaults below.
- Store is where the vectors are kept. pgvector is the only choice today.
- Batch size is how many chunks go to the embedding source in one request. It is a whole number from 1 to 500, and the default is 50. A request is also cut so that it never asks for more than 500,000 numbers at once (batch size times the model's dimensions), so with a very large model the real batch is smaller than the number you set.
- Max chunks per source is where a build stops. It is a whole number from 1 to 1,000,000, and the default is 500,000. A build that stops here is ready over what it indexed and shows
limit_reachedas its reason. - Chunk size is about how many tokens one chunk of file text or rows holds. It is a whole number from 100 to 2,000, and the default is 800.
- Chunk overlap is about how many tokens a chunk repeats from the one before it. It is a whole number from 0 to 500, and the default is 100. At or above the chunk size, a quarter of the chunk size is used instead.
- Max rows per object is how many rows of a table a build reads at most. It is a whole number from 1 to 100,000, and the default is 10,000. A table that hits it shows
row_limit_reached.
All the numbers must be whole. The server refuses text such as "50", a fraction such as 25.5, and true or false, with a message that names the setting, for example "Batch size must be a whole number" or "Chunk size must be a whole number".
On a data source's Search index tab, Use global build settings is on by default: the source is built with the values of your AI · embeddings role. Turn it off to enter the five build settings above for that source alone. A blank value there still uses the role's value. A source's own values count only while the switch is off.
Model size limit
A model that returns more than 4,000 dimensions cannot be bound to AI · embeddings, for search indexes or USS. Saving one is refused with this message:
the model has 4001 dimensions; the most allowed is 4000
The number in the message is the size of the model you chose. If the size can't be read at the moment you save, because the source is down, the save goes through and the search index build checks again: it fails with model_too_large, or with model_dimensions_unknown when the size still can't be read.
Model
Model is a list of the models your bound source's type offers. Use the source's own model comes first and is what a blank means. The list is closed: the server refuses a model that is not on it. The list follows the source, so picking a different source shows that source's models, and an Azure OpenAI source offers only the empty choice because its deployment name decides.
A model you saved earlier that the list no longer offers stays selected while the source is unchanged. While the list loads it shows Loading model list…, and if it can't be loaded the field says so and the stored value is left alone. The list is read only for a source you registered yourself; for another administrator's source the field keeps the stored model and offers no list. Some lists come from a catalog each server keeps for itself, so a model offered on one server can be missing on another. A model belongs to the source it was chosen with, so binding a different source never carries over another source's model.
Search index models
On AI · embeddings, the Defaults tab has a Search index models card. It lists every embedding model the search index holds vectors for, across the whole organization. Each row shows the model's key and one of three things: In use when a data source searches with it, Building when a build under it is running, or a Delete button. The card does not appear when the index holds no model.
Only a tenant administrator sees the card. Delete asks you to confirm, because it removes the model's vectors for everyone in the organization.
The server refuses the delete in two cases, and the card shows its message: a data source still searches with the model (switch that source to another model first), or a build under the model is running (wait for it to finish). If you later switch a source back to a model you deleted, the source embeds all of its content again from scratch.
How each kind of setting looks
Every setting is a label with its help text under it. A red star marks a required one. In an override, an Override tag marks a setting that differs from the default, and an Inherit default box takes the default's value.
| Kind | What you see |
|---|---|
| Text | A one-line box. A long text, such as SQL, gets a four-line box you can resize. A setting's own default shows greyed in the empty box. |
| Number | A number box that accepts decimals. The allowed range is a hint on the box, and the server refuses a value outside it when you save. A blank box stays blank, so an optional limit can be left unset. |
| True or false | A tick box that reads On or Off. Until you touch it, it shows the setting's own default. |
| Password | A masked box that is always empty when the form opens. The stored value is never shown back to you. Leave the box empty to keep what is stored, or type to replace it. Clearing what you just typed puts back what was stored, so Save cannot wipe a secret by accident. In an override, unticking Inherit default on a password starts with an empty box, because the default's password is not copied. On the override cards a password that is set shows as ••••••••. |
| Pick one | A drop-down. The first choice is blank and says what blank means, Not set unless the setting says otherwise. |
| Pick several | A row of chips you switch on and off. With more than 12 choices a search box appears. At most 40 unpicked chips are drawn at once, with "N more — search to narrow" under them. Picked chips always show. With nothing picked it says None selected. |
| List of lines | One box with one entry per line. Blank lines are dropped. |
| List filled from the source | A pick-list that the data source supplies, such as Model. It reads Loading … list… while it loads, and "Could not load the … list for this source." if it fails. |
| List of users | A pick-list of the tenant's users, with "Could not load the … list." if it fails. |
| Secret reference | Two drop-downs, a secret store and then a secret. See Secret references. |
Settings that show only sometimes
A role can say that a setting applies only on some layers, for example only for certain products, only on the tenant default, or only while another setting has a value. Where the rule does not hold, the setting is left out of the form. If the role gave a reason, one line of grey text takes its place. The override cards show the same line. For example, the USS product has no Model, and says that search indexes use the data source's own model.
The server enforces the same rule. A save that sets a value the layer cannot use is refused with "setting can't be set here", followed by what it needs, and a hidden setting is never sent. The rule is read on the layer alone, never with the default laid underneath. In an override dialog, a setting left on Inherit default counts as blank when the rule is checked.
Several data sources per role
A role can also bind several data sources, up to a limit the role sets. The Data sources card then has one row per source, with Remove on each and an add row below while there is room. Settings that are set once per source sit inside that source's row, under its picker. In an override dialog, those settings can inherit the default's while the override uses the default's sources. Once the override binds sources of its own, the default's per-source settings no longer apply, so the override sets its own.
Details of the Data sources card on such a role:
- Each row has its own picker, labelled "Data source 1 of 3" and so on, and a Remove button. A source bound in one row is not offered in another.
- A source you cannot see, because another administrator registered it, has no name. Its row is called "source 1", "source 2" by position.
- While there is room, an add row reads "Add another data source…" with "Federates with the sources above." beside it. At the limit it says "This role binds up to N data sources. Remove one to add another."
- A settings group named "Settings for source name" sits under the picker. It holds the settings that are set once per source, and a setting hidden by a rule shows its note there too.
- If a save is refused because of one source, for example one that is not shared with you, the message shows under that source's row, as the server sent it.
Secret references
A setting can point at a secret instead of holding one, for example an API key kept in a secret store. The form shows two drop-downs. Pick a secret store lists your own secret stores, which are data sources of a secret-store type that you registered. Pick a secret then lists the secrets in that store, read live when you choose the store. Choosing another store clears the secret. The reference counts as set only when both are picked.
Only the reference is stored: the store and the name of the secret. The value is never stored in the setting, shown on a form or card, written to a log or sent back by the server. The cards show a reference as "store name / secret name". It is read from the store only when a feature runs, as the user who bound the data source, and it stays inside the server.
A reference belongs to the data source it was saved with. Picking a different source clears it, and a reference saved on a layer with no source of its own is not used. A store shared with you is never offered, because a share must not be what lets someone read another person's secrets. A layer bound by another user cannot name your store either. A reference that the lists no longer offer stays selected, so opening the form never drops it silently.
| When | What you see |
|---|---|
| You have no secret store | "You have no secret stores. Add one as a data source first." |
| The store has no secrets | "This secret store has no secrets to pick." |
| A list cannot load | "Could not load your secret stores.", "Could not load the secrets in this store.", or the store's own refusal. |
| You save a store that is not yours | The save is refused: "setting must name a Secret Store data source you own". On a layer bound by someone else: "setting can only name your own secret store, and this layer is bound by another user". |
| The store cannot be read while you save | The save is refused with "could not read the secret store for setting, try again". Nothing is saved. |
| The store was deleted after the save | The feature stops with "A secret store a setting points at no longer exists. Pick another in Manage > Integrations." |
| The store is down, or the secret was renamed or removed in it | The feature stops with "Source unreadable, try again". The message never carries the store's own words. |
Both runtime failures are counted in the resolution metrics under the stage secret.