Manage AI context for a data model (Beta)
Manage AI context for a data model (Beta)
This documentation describes one or more public beta features that are in development. Beta features are subject to quick, iterative changes; therefore the current user experience in the Sigma service can differ from the information provided in this page.
This page should not be considered official published documentation until Sigma removes this notice and the beta flag on the corresponding feature(s) in the Sigma service. For the full beta feature disclaimer, see Beta features.
You can add AI context to a data model to help Sigma Assistant better understand how to use your data model as a data source. Adding AI context to a data model can help improve the accuracy and consistency of Sigma Assistant responses when answering questions that use the data model as a source.
This document explains how to add and manage AI context for a data model.
Sigma Assistant uses AI context when answering questions that use this data model as a source. For information about how to optimize your data model for use with Sigma Assistant, see Data modeling best practices.
Requirements
The ability to add and edit AI context for a data model requires the following:
- An AI provider must be configured for your organization. See Configure AI features for your organization.
- You must be assigned an account type with the Create, edit, and publish data models and Use Assistant permissions enabled.
- You must be the data model owner or be granted Can edit access to the data model.
Add AI context to a data model
Add AI context to a data model to improve the accuracy and consistency of Sigma Assistant responses when answering questions that use the data model as a source.
-
Open the data model.
-
In the data model header, click Edit.
-
From the document menu, select File > Set AI context.
-
In the AI context modal, select Edit.
-
In the text box, enter the AI context, using Markdown syntax for formatting and referencing tables, columns, metrics, and relationship by name.
For example, you might include the following:
-
Define aliases or alternative names for columns, tables, or metrics:
-
Explain when to use a column in one table versus another:
-
Set guardrails for how data should be used:
-
Provide instructions about when to use a metric:
-
Direct Sigma Assistant to the correct table or tables in the data model for a particular kind of query:
-
Explain when to use a relationship:
-
Describe data freshness and refresh schedules:
-
Clarify units and currency:
-
Define aggregation rules for pre-computed metrics:
When writing AI context for a data model, consider the following limitations:
- AI context is limited to 10,000 characters.
- You cannot use dynamic text formulas.
-
-
Click Add.
-
Click Publish to set the AI context and make it available to Sigma Assistant.
If you add AI context to a data model while someone is chatting with Sigma Assistant, only chats started after you publish the data model use the updated context.
Edit AI context for a data model
You can edit AI context for a data model to refine Sigma Assistant’s performance, or remove it entirely.
- Open the data model.
- In the data model header, click Edit.
- From the document menu, select File > Set AI context.
- In the AI context modal, select Edit.
- In the text box, add, edit, and remove context as needed.
- Click Save.
- Click Publish to update the AI context and make it available to Sigma Assistant.
If you update AI context for a data model while someone is chatting with Sigma Assistant, only chats started after you publish the data model use the updated context.
Review AI context for a data model
You can view the AI context for a data model from the data model overview page without opening the data model for editing in order to quickly review what has been configured. You cannot edit the AI context from this view.
- Open the data model.
- From the document menu, select File > View AI context.
- Review the AI context and close the modal when you are finished.

