Skip to main content

AI Context

AI Context in Context Center lets admins define rules for each persona. The rules select which metadata is compiled into a context document for that persona. When a user with that persona asks a question in Collate AI or uses an MCP client, Collate includes the compiled context alongside the query. Answers are then grounded in the metadata that’s most relevant to the user’s role, not just whatever the relevance ranking surfaces at query time. Think of it as persona-scoped prompt engineering: instead of tuning prompts, you curate a context layer that shapes every AI interaction for that role.
  • A business analyst persona gets the gold and certified tier of tables preloaded — Collate AI defaults to the trusted layer.
  • A data engineer persona gets broad coverage across all services — nothing is deprioritized.
  • A compliance persona gets regulatory glossary terms and policy articles always in context — the AI always has the right definitions and constraints available.
Note: For how these rules affect AI answers—and how end users can improve results by curating their catalog—see Context Engineering.

Open AI Context

Use the persona list to open the AI Context settings for a persona.
  1. From the left sidebar, navigate to Context Center > AI Context. The page lists every persona.
  2. Select a persona to open its AI Context settings and rules.
The persona list shows one row per persona with these columns:
  • Persona: The persona name.
  • Users: How many users have the persona.
  • Rules: How many rules the persona has.
  • Entities: How many entities the compiled context includes.
  • Context budget used: A bar that shows how much of the persona’s budget the compiled context uses, as estimated tokens out of the total. It shows No context generated until Collate compiles the context.
  • Freshness: The state of the compiled context. See Freshness.
  • Enabled: A toggle that turns AI Context on or off for the persona, without opening it.
Context budget used and Freshness are shown to administrators.

Global Settings

At the top of the persona’s AI Context page, configure the overall behavior before adding rules. AI Context global settings: Enabled toggle, Character budget, Cache TTL, and freshness status The version indicator (for example, v0.6) shows the current version of the persona’s AI Context. Select it to open the version history. The history lists every change to the persona’s AI Context. Examples include rules added or updated, the prompt updated, the budget or Cache TTL changed, and AI Context enabled or disabled. The Preview Context button lets you see the full compiled document before enabling it, so you can verify what the AI will receive before turning the feature on.

Freshness

Next to the settings, a status shows when Collate last compiled the context for the persona. AI Context freshness status next to the global settings On the persona list, Freshness shows one of the following states:
  • Fresh: The compiled context is current. The badge also shows when it was generated.
  • Stale: The compiled context is out of date. If it was never generated, the state is Not generated instead.
  • Not generated: The persona has rules, but Collate hasn’t compiled the context yet.
  • Generating: Collate is compiling the context.
  • Failed: Collate couldn’t compile the context.
  • Not configured: The persona has no rules yet.

Add a Prompt

Optional: Use the Prompt box to tell Collate AI who the users of this persona are and what they are responsible for. For example: You are assisting business users at Acme. They understand revenue and churn metrics and are responsible for quarterly planning. AI Context Prompt box with Cancel and Save buttons
  1. Enter the instructions in Prompt. The prompt can be up to 8,000 characters.
  2. Click Save. Click Cancel to discard your changes.
Collate AI follows the prompt for users of this persona while AI Context is enabled. Saving the prompt is recorded in the version history.

Add a Rule

Each rule defines a set of entities whose metadata is compiled into the context document. Add multiple rules to build up the full context for a persona — one rule for core tables, another for glossary terms, another for policy articles.
  1. Click + Add Rule. Add Rule button on the AI Context page
  2. Configure the rule fields. See Configuration Fields. Add Rule panel with Name, Description, Entity Type, and Filter
  3. Click Save Rule.

Configuration Fields

Name and Description

Give the rule a clear name that describes what it selects — for example, Core finance tables or Compliance policy articles. The description is optional but useful when managing many rules.

Entity Type

Choose which type of entity this rule selects. Options include Table, Glossary Term, Article, and Metric, among others. Each rule targets one entity type. Create separate rules to preload different types into the same context.

Filter

Add conditions to narrow which entities this rule includes. Filter by attributes such as:
  • Owners — include assets owned by a specific team or user
  • Domain — scope to a specific business domain
  • Tier — select only Tier 1 or Tier 2 assets
  • Tags — match assets by classification or custom tags
  • Certification — include only certified or gold assets
As you build the filter, a live count shows how many entities match — with sample entity names and a View in Explore link to verify the selection before saving. Rule filter with AND and OR conditions and the matched entities count

Always in Context

When enabled, this rule’s content is added to every Collate AI request for this persona — regardless of what the user is asking about. This is the most effective setting for knowledge articles: enable Always in context on a rule that selects articles covering domain conventions, business definitions, or team standards. The AI will always have that material available, regardless of the specific query. Use this to inject persona-level instructions or terminology that should shape every answer. To give the persona standing instructions about who its users are, use the prompt. When enabled, Collate doesn’t preload the entities this rule selects. Instead, it applies the rule as a default filter on every Collate AI search for this persona, so the persona sees only the assets the rule selects. Because nothing is preloaded, the rule doesn’t use the character budget, which keeps the budget from growing with the size of your catalog. Rules that select Glossary Terms, Articles, or Metrics are always preloaded and rendered with their full content. Filtered in search isn’t available for these rules.

Fully Rendered

When enabled, each matched entity’s entire documentation is compiled into the context. When off, only the sections selected under Context sections are included. Enable Fully rendered only when the persona genuinely needs complete entity documentation. It uses significantly more of the character budget.

Context Sections

When Fully rendered is off, choose which parts of each entity’s documentation are compiled. All lightweight sections are on by default. Context sections with Description, Schema, Keys and Constraints, and the heavy sections Lineage, Profile, and Data Quality Enable heavy sections only when the persona specifically needs that depth. They consume a significant portion of the character budget and can crowd out other rules.

Max Assets

The maximum number of matched entities compiled from this rule. Default: 200. When more entities match than the cap allows, Collate compiles the highest-priority ones first — ranked by tier, certification, and usage. Lower this value to leave more budget for other rules.

Preview the Compiled Context

After adding rules, click Preview Context to see the full document exactly as Collate AI will receive it. Use the preview to confirm that the right tables, terms, articles, and metrics are included and that the character budget is being used efficiently — before enabling the context for real users.

Example Configurations

Business analyst persona
  • Rule 1: Tables — filter by Tier 1 and certification = Gold — only the most trusted, business-critical assets
  • Rule 2: Glossary terms — filter by the analyst’s domain — so Collate AI uses agreed business definitions
  • Rule 3: Articles — filter by tag analyst-conventions, Always in context — domain conventions and preferred answer formats are always available
Data engineering persona
  • Rule 1: Tables — no filter, high max assets — broad coverage across all services
  • Rule 2: Articles — filter by tag pipeline-runbooks, Always in context — operational runbooks always in the AI’s view
Compliance persona
  • Rule 1: Tables — filter by PII tag — surfaces sensitive data assets
  • Rule 2: Glossary terms — filter by regulatory classification — correct legal definitions always available
  • Rule 3: Articles — filter by tag compliance-policy, Always in context — policy documents injected into every interaction