> ## 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.

# Snowflake semantic view metadata reference

> A complete list of what each part of a Snowflake semantic view definition becomes in the topic Omni generates from it.

Omni reads a semantic view's definition and writes it into the [topic](/modeling/topics) it generates. This page lists what each part of the definition becomes in Omni.

## What Snowflake metadata becomes in Omni

| From Snowflake                                              | In Omni                                                                                                                                                                                                                                                                             |
| ----------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `COMMENT` on the semantic view, a logical table, or a field | [`description`](/modeling/topics/parameters/description) on the topic, view, or field                                                                                                                                                                                               |
| `SEMANTIC_VIEWS.AI_QUESTION_CATEGORIZATION`                 | Topic [`ai_context`](/modeling/topics/parameters/ai-context), prefixed `Use these instructions for question categorization: `                                                                                                                                                       |
| `SEMANTIC_VIEWS.AI_SQL_GENERATION`                          | Topic `ai_context`, prefixed `Use these instructions for SQL generation: `                                                                                                                                                                                                          |
| `WITH SYNONYMS` on a dimension or metric                    | [`synonyms`](/modeling/dimensions/parameters/synonyms) on the field                                                                                                                                                                                                                 |
| `DIMENSIONS` and `FACTS`                                    | [Dimensions](/modeling/dimensions) on the logical table's view                                                                                                                                                                                                                      |
| `METRICS`                                                   | [Measures](/modeling/measures) on the logical table's view                                                                                                                                                                                                                          |
| `LABELS = (FILTER)`                                         | A [filter-only field](/modeling/filters) named `<field>__filter` that users can apply in workbooks. It uses [`bind_to`](/modeling/templated-filters#bind_to) to apply the filter through a [hidden](/modeling/dimensions/parameters/hidden) dimension holding the fact's expression |
| `PRIMARY KEY`                                               | [`primary_key: true`](/modeling/dimensions/parameters/primary-key) on the key dimension, or [`custom_compound_primary_key_sql`](/modeling/views/parameters/custom-compound-primary-key-sql) for a compound key                                                                      |
| Key columns not declared as dimensions                      | [Hidden](/modeling/dimensions/parameters/hidden) dimensions, so keys and joins resolve                                                                                                                                                                                              |
| `RELATIONSHIPS`                                             | [Relationships](/modeling/relationships) from the foreign-key table to the referenced table                                                                                                                                                                                         |
| Logical table defined by an inline SQL query                | A [SQL view](/modeling/views/parameters/sql) with the declared dimensions and metrics                                                                                                                                                                                               |

## Next steps

* See a [semantic view and the topic Omni generates from it](/connect-data/snowflake-semantic-views/sync/example)
* Learn [what Omni creates for each semantic view](/connect-data/snowflake-semantic-views/sync/trigger-sync)
