Query Generation properties

reference australia Updated Sep 10, 2026 6 min read querygen-properties.md
Raw file servicenow.com

The properties included with Query Generation apply to segments. They define whether the record or indicator that is the basis for a segment has been recently used or changed.

These properties are available for Query Generation.

Note: To open the System Properties [sys_properties] table, enter sys_properties.list in the navigation filter.

Property

Description

sn_query_gen.default_source_type

Fallback source type when the user request and conversation history do not determine whether to use table or indicator data. Accepted values: 'table' (default), 'indicator', or 'match_found_wins' (indicator data if a match was found, otherwise table). Does not apply in agentic mode.

  • Type: String
  • Default value: table
  • Location: System Property [sys_properties] table

sn_query_gen.hidden_insights.groupby.min_fields

The target number of group-by fields for extended analysis in AI Data Explorer. These group-by fields are taken from the default list view of the relevant table. When this list view contains fewer eligible fields than the property value, the system looks for more eligible fields on the table to try to reach this count.

  • Type: Integer
  • Default value: 5
  • Location: System Property [sys_properties] table
  • Learn more: Extended analysis

sn_query_gen.segment_enabled

When set to true, segments are created and used. When false, no segments are created, and all existing segments are excluded from AI Data Explorer search results. During the next Sync Segments Job, all segments are deactivated.- Type: Boolean (true/false)

sn_query_gen.segments.disable.filter

When set to true, excludes all segments from sys_filter from AI Data Explorer search results. During the next Sync Segments Job, all segments of that type are deactivated in the Segment table.

sn_query_gen.segments.disable.manual_segment

When set to true, excludes all segments from sn_query_gen_segment_table_config (manual segments) from AI Data Explorer search results. During the next Sync Segments Job, all segments of that type are deactivated in the Segment table.

Note: The ability to disable manual segments is intended for testing and troubleshooting purposes.

sn_query_gen.segments.disable.pa_cubes

When set to true, excludes all segments from indicator sources (pa_cubes) from AI Data Explorer search results. During the next Sync Segments Job, all segments of that type are deactivated in the Segment table.

sn_query_gen.segments.disable.report

When set to true, excludes all segments from sys_reports from AI Data Explorer search results. During the next Sync Segments Job, all segments of that type are deactivated in the Segment table.

sn_query_gen.segments.disable.report_sources

When set to true, excludes all segments from sys_report_source from AI Data Explorer search results. During the next Sync Segments Job, all segments of that type are deactivated in the Segment table.

sn_query_gen.segments.disable.sys_app_module

When set to true, excludes all segments from sys_app_module from AI Data Explorer search results. During the next Sync Segments Job, all segments of that type are deactivated in the Segment table.

sn_query_gen.segments.ais_batch_fetch_enabled

When set to true, enables batch AIS search where manual and automated segments are searched separately for better coverage. When disabled, manual and automated segments compete for the same result slots.

sn_query_gen.segments.indicator.inactivity_threshold_multiplier

Applies a multiplier to how long ago an indicator value can have changed for that indicator to be "recently changed." The [Query Generation] Sync Segments job deactivates segments based on indicators that have not recently changed. The value that is multiplied differs by indicator frequency (see Segments in the Query Generation semantic layer).- Type: Integer

sn_query_gen.segments.manual_segment_scale_factor

Multiplier applied to manual segments to give them a different weight than automatic segments when segments are scored.- Type: Number

sn_query_gen.segments_match_threshold

Minimum semantic similarity score that a segment must meet to qualify to be chosen.- Type: Number

sn_query_gen.segments.max_filter_length

The maximum number of characters a segment can contain. Segments of greater length are removed.- Type: Integer

sn_query_gen.segments.reports.last_viewed_threshold_days

Defines how many days ago a report can have run for that report to be considered "recently run." The [Query Generation] Sync Segments job deactivates segments based on reports that have not run recently. It also deactivates report sources whose reports have not run recently.- Type: Integer

sn_query_gen.segments_search_limit

The maximum number of results that can be requested from AI Search per search for segments.- Type: Integer

sn_query_gen.segments_result_limit

The maximum number of segments that AI Search can return after filtering.- Type: Integer

**Parent Topic:**[Query Generation reference](https://raw.githubusercontent.com/ServiceNow/ServiceNowDocs/australia/markdown/australia/now-intelligence/query-generation-reference.md)
Search documentation
Search document titles and file paths on the australia branch