How to remove (KB) in parenthesis from virtual agent search results

ritu_saluja
Tera Expert

ritu_saluja_0-1696930016634.png

 

How to remove (KB) in parenthesis from virtual agent search results

15 REPLIES 15

Chris D
Kilo Sage
Kilo Sage

This was one of the recent (Tokyo or Utah) updates to the "AI Search" topic block... I hate how it renders search results - both this prefix but more importantly, the extra click (relative to the ootb "Run AI Search" topic block) - so we actually continue to use Run AI Search instead of AI Search.

I just took a quick peek at AI Search, specifically the dynamic choice input "Display Options" and these options are being set by the function global.VAAISearchHelperUtah.createResultMap() - I quickly scanned that script include and don't see where it's setting the "KB" prefix but that'd be the place to look more carefully if you really want to understand - but even if you find it, that script include is read-only and doesn't extend a customizable script include so you may be stuck with it (unless it references something else configurable)...

Lynda1
Kilo Sage

This might be a silly question but I have to ask.  the AI Search fallback provides the title of the KBs, Do you have (KB) in the titles or the articles?

Denny6
Kilo Guru

Hi,

 

the beginning part of every provided search result item stands for the source there are coming from e.g. (KB) or (Catalog).

 

You should go to Topic Block "AI Search" in the flow go to "Display Option" and you will find the place under "Define Choices" in the script as shown in the picture.

 

Mark as helpful if it answer your question.

 

AI Search - Output.JPG

Hello can you please suggest exactly what changes do I need to make in order to remove the (KB) from the search results

In this for loop option.push({ ... }); the found results will copied over to variables (key / value paires) this data which will then be printed out as results to you.

 

Replacing the right of the 3 with '' mean fill with empty will print nothing.

I can not say which of the 3 is the right because I have currently not AI Search in my PDI but you can test one by one with ''.

 

I would start with 'label': resultMap[key] and changing it to   'label': ''    . Hope this helps you.