AI Search - Improvement rules help

Jar
Tera Expert

Hi all,

Having some trouble setting up improvement rules for the AI Search. We have a custom country field on the user and knowledge records and want to set up a boost rule if the countries match for the term searched. Can't get it to work though.

When selecting Boost by User Context, where exactly are the fields being pulled from to be matched? Is the "Matches the Searcher's" option referring to the sys_user fields or something else? I don't find that the AI Search documentation really explains this

3 REPLIES 3

Shamus Mulhall
ServiceNow Employee
ServiceNow Employee

Hi,

You are correct, when selecting Boost By User Context and "Matches the Searcher's" <Country> the matches are pulled fro the sys_user table.  The one issue with that is the users country in the sys_user table has a Label and separate Value.  You will need to make sure that your custom country field on the knowledge records matches that Value field in the sys_user table.  Below is an image of the OOTB sys_user table, the two character country code would need to match the value of the custom country field on your knowledge content (BR, CN, FR, etc).

 

Screen Shot 2022-11-22 at 2.32.06 PM.png 

Additional note on the use of Results Improvement Rules, you will need to make sure that the "End Date" setting is sufficiently out beyond the current.

Thanks for the reply Shamus. We did a work around by adding a new field on the KBA record and running a fix script to populate the new field. We will then have a BR run when a KBA is created or updated to make sure this new field is correctly populated.

 

*edit

OP here. Apoglies I have two accounts which are linked and I can never remember which one I've logged in as for posting.