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

 Release :

    - xanadu

ft:locale :

    - en-US

ft:publication_title :

    - Xanadu ServiceNow AI Platform Administration

ft:clusterId :

    - platadm

bundleId :

    - platadm

workflow :

    - Platform


---

# Change the minimum search term count for Now Assist Q\&A Genius Results

# Change the minimum search term count for Now Assist Q\&A Genius Results {#ariaid-title1}

* Release version: Xanadu
* 
* Updated February 6, 2025
* 
* ![](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 Now Assist Q\&A Q\&A Genius Results. Searches with fewer terms don't return Now Assist Q\&A Genius Result answers.

## Before you begin

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

Role required: ais_admin

## About this task

Now Assist Q\&A Genius Results send eligible knowledge article search results to the Now LLM Service for Q\&A Genius Result answer generation.  
By default, the system only sends knowledge article results to the Now LLM Service 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 Now Assist Q\&A Genius Result configurations.

## Procedure

1. Navigate to AllAI SearchSearch Query SettingsGenius Results.
2. Open the record for the Q\&A - Now Assist 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 Now LLM Service for Q\&A answer generation unless the search query has enough search terms to satisfy your chosen limit.

*[\>]: and then


