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

 Release :

    - brazil

ft:locale :

    - en-US

ft:publication_title :

    - Brazil Platform Analytics

ft:clusterId :

    - par

bundleId :

    - par

workflow :

    - Platform


---

# Guidelines for segments

# Guidelines for segments {#ariaid-title1}

Release version: Brazil  
Updated September 10, 2026  
![](https://www.servicenow.com/docs/portal-asset/ico-clock) 4 minutes to read
Summarize  
![AI sparkle icon](https://servicenow.com/docs/portal-asset/ai-sparkle-icon) Summarized using AI  
This content was generated using new OpenAI-powered functionality. Results are provided on an as is basis and are not guaranteed to be accurate or complete.  

## Summary of Guidelines for segments

This document provides best practices for effectively using segments in the ServiceNow semantic layer, focusing on improving natural language query matching and enhancing user experience with domain-specific saved searches.
Show full answer Show less  

## General Guidelines for Segments

* Test segments using natural language questions and verify matches via Query Generation logs.
* Monitor query logs to identify valuable segments and disable noisy auto-generated segments instead of creating many manual ones.
* Use natural, user-friendly phrasing and maintain one segment per concept to avoid confusion.
* Refine segment names and descriptions based on user feedback and usage patterns.
* Create manual segments for recurring questions not well handled by automated segments.

## Guidelines for Manual Segments

* Manual segments are recommended for shipping domain-specific saved searches and receive priority during search.
* Focus manual segments on high-value, frequently queried tables relevant to your users (e.g., incident, screqitem).
* Ensure target tables have semantic layer configuration enabled with "Enable Semantic Generation" set to true.
* Provide clear, business-friendly names for choice-heavy filters to ensure effective matching by the large language model (LLM).
* Use descriptive text to differentiate similar segments to help the LLM select the most appropriate one.
* Keep filters focused and simple; split complex conditions into multiple segments to avoid truncation and improve LLM reasoning.
* Combine manual segments with semantic descriptions for optimal LLM understanding of tables and filters.
* Avoid duplicating automated segments; consider renaming source reports before creating manual duplicates.
* After deployment, monitor segment matching and query accuracy, iterating on names and descriptions before adjusting system properties.

## System Property Tuning Suggestions

* **Improving segment matches:** Lower `segmentsmatchthreshold` (e.g., to 0.60) to increase tolerance for domain-specific phrasing differences.
* **Enhancing manual segment priority:** Increase `manualsegmentscalefactor` cautiously, ensuring manual segments have strong names and descriptions first.
* **Reducing irrelevant segments:** Lower `segmentsresultlimit` to reduce noise or raise `segmentsmatchthreshold` for stricter matching.
* **Managing long filters:** Increase `maxfilterlength` if needed but prefer splitting complex filters into simpler segments to maintain query quality.
* **Enabling batch search:** Turn on `segments.aisbatchfetchenabled` to improve manual segment coverage by giving manual and automated segments dedicated search slots.

## Practical Impact for ServiceNow Customers

By following these guidelines, customers can:

* Create effective, user-friendly segments that enhance natural language querying in ServiceNow.
* Prioritize and fine-tune manual segments to reflect domain-specific needs and high-traffic data.
* Ensure semantic layer configurations support segment functionality and improve query quality.
* Manage and monitor segment performance post-deployment to continuously improve search relevance and user satisfaction.
* Optimize system settings to balance coverage, relevance, and LLM prompt efficiency.  
Follow these suggestions to help you use segments in the semantic layer effectively.

## General guidelines for segments {#general-guidelines-segments__section_um4_mpd_y3c}

* Test segments by asking natural language questions that should match them. The segment should appear in Query GenerationLogs.
* Monitor query logs to verify segments are being matched correctly and to identify the most valuable segments.
* Disable noisy auto-generated segments rather than trying to overfit with multiple manual ones.
* Use natural phrasing that matches how your users actually speak.
* Keep one segment per concept to avoid confusion.
* Refine segment names and descriptions based on user feedback and usage patterns
* Consider creating manual segments for recurring questions that are not handled well by the existing segments.
{#general-guidelines-segments__segment-best-practices-list}

## Guidelines for manual segments {#general-guidelines-segments__section_bg3_qpd_y3c}

Manual segments are the recommended way to ship domain-specific saved searches with your application. They receive a priority boost over automated segments during search, and the LLM is instructed to retain all their filters unless completely irrelevant.{#general-guidelines-segments__manual-segments-intro}

Start with high-value, high-traffic tables
:   Focus manual segments on the tables your users ask about most. A handful of well-crafted segments on incident, sc_req_item, or your application's primary table will have more impact than broad coverage across rarely-queried
    tables.

Check that your tables are in the semantic layer
:   The target table for a manual segment must have a corresponding record in the Semantic Table Config \[sn_query_gen_table_config\] table. The value of Enable Semantic Generation in that record must be <kbd class="ph userinput">true</kbd>.

Pair every choice-heavy filter with a clear name
:   If your segment filters on choice values---for example, `state=6^priority<=2`---the segment name must translate those codes into business language. The LLM matches on the name, not the filter. "Resolved Critical and
    High Incidents" is searchable, but `state=6^priority<=2` is not.

Use descriptions to disambiguate similar segments
:   If you ship multiple segments for the same table---for example, "Open Incidents" and "Open Critical Incidents"---descriptions are what help the LLM pick the right one. Without descriptions, the LLM may arbitrarily choose between two close matches.

Keep filters focused
:   A segment with 15 filter conditions is hard for the LLM to reason about and likely to be truncated. If you have a complex use case, split it into multiple segments with simpler filters. The LLM can combine filters from different segments when constructing a query.

Complement semantic descriptions with segments
:   Manual segments and semantic descriptions (entity/column config) work together. Descriptions help the LLM understand *what* a table and its columns represent. Segments help the LLM understand *how users typically filter* that table. For best results, ship both.

Avoid duplicating automated segments
:   Before creating a manual segment, check whether an automated segment already covers the same filter. If one does but has a poor name, consider whether improving the source---for example, renaming the report---is a better approach than creating a duplicate manual segment.

Review after deployment
:   After shipping, monitor which segments are being matched and whether the generated queries are correct. If a segment is matching but producing wrong results, the issue is usually the name being too generic or the filter being too broad. Iterate on the name and description first before adjusting system properties.
{#general-guidelines-segments__manual-segment-recommendations}

## Property tuning suggestions {#general-guidelines-segments__section_w43_xm2_y3c}

Use these suggestions to adjust system properties when segments are not performing as expected. For a complete list of all segment properties and their defaults, see [Query Generation properties](https://servicenow-prod.fluidtopics.net/h9tHOx4wzidQTMJcxnaHuA "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.").{#general-guidelines-segments__tuning-intro}

Segments are not matching user questions
:   Lower segments_match_threshold (For example, set it to `0.60`). The default `0.70` can be too strict for domain-specific terminology where the user's phrasing differs from the
    segment name. Start lower and tighten once you have enough segments.

Manual segments are being overshadowed by automated ones
:   Increasing manual_segment_scale_factor gives manual segments a stronger edge, but a higher boost does not necessarily mean better results. A poorly named manual segment boosted above a genuinely relevant
    automated segment will degrade query quality. Before adjusting the boost, first check whether the manual segment's name and description are well-written. That is usually the real fix. Only increase the factor if you're confident your
    manual segments are high quality and still losing to weaker automated matches.

Too many irrelevant segments in the LLM prompt
:   Lower segments_result_limit (for example, `6` or `8`). Fewer segments in the prompt means less noise for the LLM, but also less coverage. Find the balance for your domain. Alternatively, raise segments_match_threshold if you're seeing low-quality matches slip through.

Long filters getting truncated
:   Increase max_filter_length if your segments require complex filters. Be aware that longer filters consume more of the LLM's context window and may reduce overall generation quality. Consider splitting a complex segment into multiple focused segments instead.

Batch search is disabled and manual segments are not surfacing
:   Enable the AI Search property segments.ais_batch_fetch_enabled. Without batch search, manual and automated segments compete for the same result slots. Batch search gives each type a dedicated search,
    significantly improving manual segment coverage.
{#general-guidelines-segments__tuning-suggestions-list}
**Related concepts**   

* [Manual segment data model and sync behavior](https://servicenow-prod.fluidtopics.net/_gkswBMVWQepDfQQ96bFgQ "Manual segments use a two-table data model with automatic synchronization between the configuration table and the runtime table used for search operations.")
* [Shipping manual segments via plugins](https://servicenow-prod.fluidtopics.net/FQReYLviqMgNePkoNJUPHQ "Business unit application developers can ship manual segments with their applications to provide domain-specific saved searches that work from the moment the app is installed.")  
**Related tasks**   

* [Create a manual segment](https://servicenow-prod.fluidtopics.net/bCxcKK~4dXP8WP9xrM~bzw "Manual segments are admin-created saved searches with friendly names that bridge natural language questions and database filters for the Query Generation semantic layer.")

*[\>]: and then


