How to remove (KB) in parenthesis from virtual agent search results
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 02:28 AM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 06:04 AM - edited 10-10-2023 06:09 AM
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)...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 07:47 AM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-10-2023 08:08 AM - edited 10-10-2023 08:17 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 01:54 PM
Hello can you please suggest exactly what changes do I need to make in order to remove the (KB) from the search results

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-11-2023 11:07 PM - edited 10-11-2023 11:08 PM
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.