GenAI Kill Switch

Increasingly corporations and governments are discussing the need for a GenAI kill switch. Governments are also looking to pass legislation (https://www.congress.gov/bill/119th-congress/house-bill/9917/text) that would dictate the adoption of these kill switches.

So how would you implement this in the Pega Platform?

Currently within Pega there is an EnableGenerativeAI environment toggle that must be enabled before GenAI rules can be used. By disabling this toggle, you will stop all GenAI usage within this environment.

For the Infinity 26 release, you would do the following to disable GenAI for a specific Pega environment.

  1. In the header of Infinity Studio, click Configure > System > Release > Toggles.
  2. On the Toggle Management page, click the filter in the Identifier column, and enter EnableGenerativeAI.
  3. At the end of the row, click the Edit icon.
  4. In the Edit toggle dialog box, deselect the Enable toggle for all setting, and then click Submit.

** Within the toggle there is also a when rule that can be used to check for the toggle status. “pzToggle_EnableGenerativeAI20230418T060706”

image

While you have effectively shut down GenAI usage within your environment, you have also effectively caused issues with all your case types that are using these GenAI rule types. Therefore, if you are implementing a kill switch approach within your environment, you will also need to take into account that the GenAI steps need to temporarily revert to a human analysis/processing step.

One approach to solving this is to leverage rule circumstancing within Pega. First, isolate all of the GenAI steps into their own Process (flow). The Base flow is left as the GenAI is active flow, since this is the typical flow that will be followed. Then create a circumstanced version of the flow that handles the process when GenAI is not active, for example: swap the GenAI step types for assignment steps.

1. isolated GenAI steps ____________________ 2. circumstanced flow

6 Likes

@cantg appreciate the efforts in composing the article at right time thank you very much. lot of confusion on where to run the tasks. GPU’s for AI models and CPU for humans and AI agents. this will be the new trend in coming months. I hope this feature helps lot in that direction of thought.

My concern with this approach is the time involved. It would require designing alternative approaches every time GenAI is a part of the process. If a kill switch is needed, I would assume many things would break (not just processes in Pega). Isn’t that why we have the broken process flow built in?

1 Like

role : AI keyboard warrior

blueprint has to handle that :smiley: