Connect Generative AI rule page not refreshing

Hi,

I am calling pxConnectToGenerativeAI activity in Pega version Infinity 23.

The rule uses the data page D_pzGenerativeAIDefinition when connecting to the AI. I am trying to use the function pxDeleteAllInstancesOfDeclarativePage to delete instances such as D_pzGenerativeAIDefinition_pa1860079120327942704pz but I get stale data on the next call of the activity.

Any help would be appreciated. Thanks.

Hi@PatrickS7343

Please let us know why you are using pxDeleteAllInstancesOfDeclarativePage to delete the instances of D_pzGenerativeAIDefinition. Can you give some screenshots for us better understand the issue.

Please look once into you GPTRequest page in the tracer to understand the request and response of the Connect-Generative AI call.

@SrijitaB

The prompt being sent to GenAI that is located on the GPT Request page is not being updated when the field value is changed. The prompt only gets updated when a user logs out. Is the data transform that is running in pxConnectToGenerativeAI not repopulating the data correcty? I was attempting to flush the pages.

@PatrickS7343

The Connect-GenerativeAI rule inherently works like that.

As you already know that it refers a field value for the prompt, however if you make any changes in the field value (prompt) after you have referred it in your Connect-GenerativeAI rule the changes do not get reflected automatically. Rather what you need to do every time you make a change to the prompt is you need to go back to the Connect-GenerativeAI rule and re-select the same field value again for the new prompt to get saved.

Hope that helps