watsonx Assistant

watsonx Assistant

Conversational AI for fast and friendly customer care

 View Only
Expand all | Collapse all

How to display 'AI accuracy may vary' disclaimer

  • 1.  How to display 'AI accuracy may vary' disclaimer

    Posted Wed February 26, 2025 09:46 AM

    Hi!

    I'm struggling to find where to toggle this disclaimer on when using conversational search in Watson. Is anyone able to advise please?

    Thanks, Will



    ------------------------------
    William Griffith
    ------------------------------


  • 2.  RE: How to display 'AI accuracy may vary' disclaimer

    Posted Thu February 27, 2025 10:22 AM
    Edited by MARIA GODOY Thu February 27, 2025 10:22 AM

    Hello William,

    There is a disclaimer property on the conversational search response that has the disclaimer text in it. If you set this to '', it'll hide the disclaimer. You can do that in a pre:receive event like shown below. Note though that in recent versions of web chat, this disclaimer was actually removed although there's been some talk of bringing it back with more options for controlling it.

    instance.on({ type: 'pre:receive',

    handler: (event) => {

    event.data.output?.generic?.forEach((item) => {

        if (item?.response_type ===

    'conversational_search') {

          item.disclaimer = '';

        }

      })

    }});

    Hope it helps.