> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omni.co/llms.txt
> Use this file to discover all available pages before exploring further.

# ai_fields

> Curates the fields in the topic that are provided to the Omni Agent.

Curates the fields in the topic that are provided to Omni's AI. If defined, only the specified fields will be added to the context window. Refer to the [Optimizing models for AI](/modeling/develop/ai-optimization) guide for more information on best practices.

<Warning>
  This parameter changes what the AI is aware of, not what it has access to. All queries are run with the same permissions as the user and it's possible for the AI to make assumptions about schemas given enough context.
</Warning>

## Syntax

```yaml theme={null}
ai_fields: [ "<field_selector>", ... ]
```

## Properties

<ParamField path="ai_fields" type="string[]">
  An array of field selectors that determine which fields are provided to the Omni Agent's context window.

  Supports the following operators:

  * Wildcards (`*`)
  * Exclusions (`-`)
  * Tag-based selection (`tag:`)
  * View-specific tag filtering (`view:tag:`)
</ParamField>

## Examples

```yaml theme={null}
ai_fields: [ all_views.*, -tag:dont_use_for_AI, -distribution_centers.* ]
```

```yaml title="Exclude a view but re-include specific tagged fields from that view" theme={null}
ai_fields: [ all_views.*, -internal.*, internal:tag:safe_for_ai ]
```
