The Zurich release has arrived! Interested in new features and functionalities? Click here for more

Victor Chen
ServiceNow Employee
ServiceNow Employee

Taken from: KB1701078

 

Introduction 

The goal of this article is to provide detailed steps and explanation on how to take advantage of the Now Assist in AI Search personalization capabilities.  This configuration will allow the search admin to identify which knowledge articles the NowLLM should prefer, when there is a match to the search user’s location or company. The enhancement below applies to non-Now Assist AI Search too. 

 

Overview 

This article will step through the configuration of user context matching for Now Assist Q&A Genius Results.  This will include the creation of a Result Improvement Rule and linking a new synonym dictionary to the appropriate search profile.  The synonym dictionary will map city, state, country and can also be used to map department, and company to boost search results after the results have been reranked by the LLM.  This will increase the likelihood that the LLM will include the content specific to that search user when generating Now Assist Q&A responses.

 

Details  

When a result improvement rule with a boost action activates, AI Search modifies the relevancy scores for search results from an indexed source specified in the action. Boosting content will make modifications to the relevancy scores of items in a query’s search results.  The set of search results does not change, but their ranking does. If multiple boost actions are triggered on the same result set (against fields whose name contains any of these words: city, company, country, department, state.) the effect on the score will be additive, with each action further increasing the relevancy score on the result. 

 

The following example configuration will demonstrate how to boost knowledge content that contains a location identifier in the kb article short description (i.e. Holiday calendar – US).

 

Boost by City, State, Country Configuration 

To begin the configuration, navigate to All > AI Search > Search Experience > Search Profiles. Select the appropriate search profile, in the related list at the bottom of the page select the Result Improvement Rules tab select Create.

VictorChen_5-1727216904045.png

 

Create a new rule LocationBoost and select Activate on all queries then save. This example will illustrate an evergreen rule with an End Date set out far into the future.

VictorChen_6-1727216944615.png

 

Select Create Boost Action to start the action definition.  Boost Type: Boost By User Context (dynamic). Indexed Source: Knowledge Table. When: short_descripiton Matches the Searcher’s: Country (sys_user.country).  From there set the Boost Weight to 100 as a starting point.  Research has shown that setting a value between 100-300 (10 – 30% boost) produces the most favorable results.  Boosting higher can cause undesirable results when the search results do not need to be user context specific.

VictorChen_7-1727217014071.png

 

Once the boost action has been created.  Select Submit and update the rule itself.

 

Synonym dictionary link

The final step to configuring search personalization will be to link the User Context Synonym Dictionary.  This dictionary contains a wide range of city to country mappings to support boosting on matches with the search user’s context.  This is not an exhaustive list of mappings and may require manual additions to support your content and user base. 

VictorChen_8-1727217043754.png

 

Once the User Context Synonym Dictionary has been linked to the search profile.  Select Submit and finally you will be able to publish the search profile with the newly updated search personalization for Now Assist capability.

Comments
Kass3m
Tera Expert

@Victor Chen  the last step, which tab is the dictionary linked in? the synonym on the Result improvement Rule?

Version history
Last update:
‎09-26-2024 10:54 AM
Updated by:
Contributors