Connect AIP Logic/Text Input into Workshop Issue

Hi y’all,

I’ve built the LLM and tested my prompt which is great! I started making the front-facing application in the workshop. I’ve added my text input boxes and a with LLM box that I could box to the workshop.

However, when I try to type into the text input boxes that LLM isn’t updated in workshop. So, I’m wondering if I missed a linking step or if I need to change my prompt. I already published the workshop since I thought I was working but alas!

Has this issue come up with anyone else? I was working late on it so I wonder if I just missed a step in the link the LLM and text input boxes to the workshop.

Thanks!

Hey!

Is your AIP Logic function returning a string? If so, try adding the Markdown widget and setting its config to display a variable.

You can then create a String variable in your Workshop module whose value is determined by a function, and then you can search for and select your AIP Logic function. Use this String variable in the Markdown widget and you should see it update as you input new text in the Text Input widget.

For extensions, you can experiment with the following:

  1. The Text Input widget has a toggle in the configuration panel to the right for “Event on enter”. You can add an event called Recalculate {nameOfYourStringFunctionBackedVariable}
  2. Add a Button Group widget whose on-click behavior is set to event, and add the same Recalculate {nameOfYourStringFunctionBackedVariable} event

Either of the above will alter the UX slightly such that user “confirmation” is required prior to the recomputation of your AIP Logic function.

Hi Josh!

My AIP Logic is returning “String. I feel like I need to show you.

So, I’m using Text Input and have string as the value. Under The Plan - it’s supposed to show the generated plan based on the input the user would put in the Text Input in Criteria. When I go back to the LLM and run the evaluation suite it is working.

Would you recommend removing the Text Input Box and putting the Markdown box instead? I thought my AIP Logic function was selected, but maybe I’m looking in the wrong spot. For example, Target Language is tied to the string value “language which you see on the right. However, when I go to view this workshop and put in a value for Target Language nothing happens in the LLM .

Appreciate your help!

Hey!

This looks good so far; don’t remove the Target Language Text Input widget, but under The Plan, you can add a new Markdown widget. In the config panel for the new Markdown widget, you can switch its config from Text > Variable. If you don’t already have a string variable for it, create a new one that is backed by a Function (instead of Static, Object property, etc.).

In that new variable, select your published AIP Logic function and choose the desired function version number. The variable config panel will update and show a list of input arguments it expects based on how you defined the AIP Logic function. There, you can pass in your “language” Workshop variable (as shown on the right side of your screenshot) to the appropriate argument.

1 Like

YES! Bless you Josh! Thanks for your help! I thought I need to put in the AIP Logic widget in that space.

1 Like