Overview
In Promptform, you can dynamically control model parameters such as Temperature, Image Size, and others by linking them to user-defined inputs. This allows you to provide a more interactive and customizable experience for your end-users by adjusting these settings based on user choices.
Linking inputs is useful when you want users to modify certain aspects of how the AI generates responses without manually changing parameter values in the App Editor.
Understanding Linked Inputs
Linked Inputs enable you to map user-defined fields (like sliders, dropdowns, or text fields) to model parameters. When an input is linked, the selected value automatically modifies the corresponding parameter during app execution.
For example:
Linking a slider to Temperature allows users to adjust the randomness of AI responses.
Connecting a dropdown to Image Size lets users select the dimensions of the generated image.
Linking Inputs to Model Parameters
Follow these steps to link inputs to control model parameters:
Step 1: Open the App Editor
Navigate to the App list page.
Locate the app you want to modify.
Click Edit to open the App Editor.
Step 2: Navigate to Model Parameters
Inside the App Editor, click the Prompts tab.
Scroll down to the Model Parameters area where you’ll see settings like:
Temperature
Max Tokens
Top-P
Frequency Penalty
Presence Penalty
Step 3: Add and Configure an Input Field
Click the Inputs tab in the App Editor.
Click on Add Input and choose an appropriate input type:
Slider: Ideal for numeric values like Temperature or Top-P.
Dropdown: Useful for selecting predefined values like Image Size.
Name the input and configure its properties, such as min/max values or choices.
Step 4: Link Input to a Parameter
Return to the Model Parameters section under the Prompts tab.
Next to the parameter you want to link, click on the Link Input Icon (chain-link icon).
Select the input field created in the previous step from the dropdown.
The linked input will now appear next to the parameter.
✅ Tip: Linked inputs override the static values set for parameters, allowing real-time changes during app use.
Step 5: Save and Test Your Changes
Click Save to apply the changes.
Run a test using the app to verify that the linked input correctly controls the intended parameter.
Example Use Case
Scenario: You want to allow users to control the creativity of AI responses by adjusting the Temperature.
Add a Slider Input with a range between
0.0and1.0.Link the slider to the Temperature parameter in the Model Parameters section.
When the user moves the slider, the Temperature value dynamically changes, affecting how random or deterministic the AI’s responses are.
Managing Linked Inputs
If you need to change or remove a linked input:
Click the Link Input Icon again and either choose a different input or remove the link.
Don’t forget to Save your changes to ensure the new settings are applied.
Troubleshooting
Here are some common issues and their solutions:
1. Input Not Affecting the Parameter
Double-check that the correct input is linked to the desired parameter.
Ensure that the input type matches the parameter format (e.g., slider for numeric values).
2. App Not Saving Changes
Verify that you’ve clicked Save after linking inputs.
Check for any errors or conflicts in the App Editor.
3. Input Value Out of Range
Make sure the input’s min and max values are properly set to match the expected range for the parameter.
FAQs
1. Can I link multiple inputs to a single parameter?
No, only one input can be linked to a parameter at a time. If you link a new input, it will replace the previous one.
2. Can linked inputs be used to control all model parameters?
Yes, most model parameters like Temperature, Max Tokens, Top-P, and others can be linked to inputs.
3. What happens if the linked input is deleted?
If a linked input is deleted, the parameter will revert to the default value set in the App Editor.
✅ Next Steps:
Consider adding more inputs to let users fine-tune multiple model settings.
Test linked inputs thoroughly to ensure smooth user experiences.