---
sourceDocument: Australia ServiceNow AI Platform Administration
sourceDocumentLink: https://www.servicenow.com/docs/r/platform-administration

 Release :

    - australia

ft:locale :

    - en-US

ft:publication_title :

    - Australia ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Change the minimum search term count for Knowledge base articles Genius Results

# Change the minimum search term count for Knowledge base articles Genius Results {#ariaid-title1}

* Release version: Australia
* 
* Updated July 25, 2026
* 
* ![](https://www.servicenow.com/docs/portal-asset/ico-clock) 1 minute to read

Specify the minimum number of terms that a search must contain to be eligible for triggering Knowledge base articles Genius Results. Searches with fewer terms don't return Knowledge base articles Genius Result answers.

## Before you begin

The ServiceNow Otto for AI Search
ServiceNow® Store application must be installed on your instance. For details on installing this application, see [Install ServiceNow Otto for AI Search](https://www.servicenow.com/docs/zO6iTVlX1auIfyqg9Et1~Q "As an administrator, you can install the ServiceNow Otto for AI Search application (sn_ais_assist) from the AI Admin Hub module.").

Role required: ais_admin

## About this task

Knowledge base articles Genius Results send eligible knowledge article search results to the LLM for answer generation.  
By default, the system only sends knowledge article results to the LLM when the search satisfies all of these conditions.

* The search application is Service Portal, Virtual Agent, Employee Center, or global search.
* The user's session language is English.
* The search contains two or more terms.
* The search matches the Java regular expression pattern defined by the sn_ais_assist.u_question_regex system property's value. This system property has no value set in the base system, so by default all search queries satisfy this condition.
{#set-min-srch-terms-now-assist-qna__ul_sgk_5vf_zwb}

You can customize the term count condition by altering the minimum term count required by Knowledge base articles Genius Result configurations.

## Procedure

1. Navigate to AllAI SearchSearch Query SettingsGenius Results.
2. Open the record for the Knowledge base articles Genius Result configuration by selecting it from the list.
3. In the AI Search response processor field, locate the following code block:  

           var searchPhrase = context.getOriginalSearchPhrase();
           if (searchPhrase.split(" ").length < 2) {
               return answer;
           }

4. Change the inequality statement's numeric argument from 2 to another positive integer.  
   As an example, if you only want the Genius Result configuration to operate on searches with three or more search terms, change 2 to <kbd class="ph userinput">3</kbd>. If you want the Genius Result configuration to operate on searches with any number of search terms, change 2 to <kbd class="ph userinput">1</kbd>.
5. Select Update.
{#set-min-srch-terms-now-assist-qna__steps_cfl_dky_fzb}

## Result

The modified Genius Result configuration doesn't send knowledge article search results to the LLM for Knowledge base articles answer generation unless the search query has enough search terms to satisfy your chosen limit.

*[\>]: and then


