---
sourceDocument: Australia Platform Analytics
sourceDocumentLink: https://servicenow-prod.fluidtopics.net/r/de-DE/now-intelligence

 Release :

    - australia

ft:locale :

    - de-DE

ft:publication_title :

    - Australia Platform Analytics

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# Explore

# Exploring Query Generation {#ariaid-title1}

* Freigeben Version: Australia
* 
* Aktualisiert 12. März 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 2 Minuten Lesedauer

Query Generation is an AI-powered service that translates user questions into an executable query and returns the results. An executable query contains the data source, filter, aggregation, and visualization
instructions that best answer the user's question. The results include a textual summary, a data visualization, and suggestions for follow-up.

## Query Generation overview {#exploring-query-generation__cf-exploring-parent-overview}

Query Generation relies on a semantic data layer to generate queries. The semantic data layer is a flat representation of tables and table columns that the Query Generator uses to find the actual facts tables and columns related to a
user utterance. Specifically, facts tables are represented by Entity records and their columns by Dimension records.

Not all facts tables are included in Query Generation, as this would overload an instance. To see which facts tables are included, open the Semantic Tables Configurations list \[sn_query_gen_table_config_list\], and note which tables are present and have
Enable Semantic Generation = true. You can add more tables to the list, but be careful of possible performance impacts. For more information, see [Add a table to the semantic data layer](https://servicenow-prod.fluidtopics.net/PPcWbYYc5k0gBFhiuMOIQQ#add-table-semantic-layer "Add more tables to the Query Generation semantic layer so that users can use Now Assist in Platform Analytics applications to ask questions about the data in those tables.").

## How Query Generation works {#exploring-query-generation__section_nsr_sdl_dgc}

Before Query Generation can call the LLM, it has to filter the instance schema down to only the relevant entities and dimensions needed to answer the user's question. This filtration serves two critical purposes:

* It provides the LLM with precise grounds for truth about available tables and columns, preventing hallucination of non-existent data structures.
* It maintains a focused context window, which improves LLM performance and accuracy compared to processing the entire schema.
{#exploring-query-generation__ul_cfm_g2l_dgc}

Query Generation uses a semantic filter to narrow the entities (facts tables) to the 2 closest matches to the user's question. Then from those entities, it narrows the dimensions (columns) to the 30 most similar to the
user's question. Query Generation passes these results to the LLM, which generates a semantic query. A constitutor takes this semantic query and translates it into an executable query.

## Query Generation users {#exploring-query-generation__cf-exploring-parent-users}

{#exploring-query-generation__table_b32_mj2_bgc__entry__2}

| User | Description |
|-|-|
| ServiceNow AI Platform administrators responsible for Now Assist in Platform Analytics \[admin\] | Administrators can add or remove tables from the semantic data layer. Only users with the admin role can read or change Query Generation records. |
| Users of Now Assist in Platform Analytics applications | Users of the Now Assist in Platform Analytics applications call Query Generation through those applications, although Query Generation is not visible to them. They should have the required Query Generation user roles through the roles granted to them to use the intermediary application. |
[Tabelle : 1. Users]

{#exploring-query-generation__table_b32_mj2_bgc}

## What to explore next {#exploring-query-generation__cf-exploring-parent-links}

To learn more about configuring and using Query Generation, see:

* [Configuring Query Generation](https://servicenow-prod.fluidtopics.net/FK~YEZhc5QBQolHWVXnSeg "Select the tables that are subject to Query Generation.")
* [Query Generation reference](https://servicenow-prod.fluidtopics.net/xpFIa6_cpDt2z_qIgpp7xg "A list of Now Assist applications that come with Query Generation and the tables, jobs, and logs included in Query Generation.")
{#exploring-query-generation__ul_f32_mj2_bgc}

