- Log into Designer and open the Snap Catalog or Asset Palette.
-
In the Snap Catalog search field, enter the search string prompt and
press ENTER.
The following options display in the results.
-
Click and drag the Snap onto the canvas.
-
Point and click the Snap to open the Settings dialog.
-
Click Open Prompt Composer.
The Prompt Composer console opens.
Close the Prompt Composer and validate the pipeline if the following message displays:
The pipeline is not validated. Please validate the pipeline to get the data
.
- To input data, add any Snap that connects to a data source before the Prompt Generator Snap.
For example, add and configure a JSON Generator or a File Reader Snap.
-
Add a Snap that calls an LLM after the Prompt Generator.
The following are supported:
-
Configure and select the Snap account used to access your LLM.
-
Configure the Snap, making sure to select the vendor LLM model.
-
Enter your prompt in the Prompt editor, press ENTER and click Update.
The Rendered template is populated with the Prompt, and then the LLM response is returned.
If the LLM response window does not populate with the returned
response, complete the following steps:
- Close the console by clicking X in the top
right corner.
- In Designer, click the Validate icon in the toolbar.
- Relaunch Prompt Composer.
- If the Prompt Console LLM Response field is still empty, check the Date Preview of
the text generation Snaps for messages indicating that the LLM was unable to respond.
-
When your session is finished, click Done.
Prompt Composer saves your changes, re-validates the pipeline, and closes
the console.