Prompt Composer Layout

Console UI Overview

The Prompt Composer console has a 3-panel structure, with each containing two partitions.

Prompt Composer console with callouts.

Console panels

The following sections described each panel of the Prompt Composer console.

Input Schema

Displays the organization and format of the incoming data from the upstream Snap. This includes the types of data fields (such as strings, integers, and dates) and their relationships. This view helps you write your prompts based on reliable data analysis and processing.

Input Data

Displays the incoming data from upstream Snaps. This view allows you to scroll through the data without having to look at the source or data preview.

Prompt Editor

Enables you to write prompts using mustache template syntax. You can click the left-facing arrow to return to the previous prompt you entered. This grays out the Rendered Template content. To return to the current prompt, click the right-facing arrow.

Assistant - Ask SnapGPT

Empowers you to write and modify prompts by leveraging SnapGPT for help. This also removes the need to use mustache template syntax. You can ask the SnapGPT to generate your prompt using natural language. When SnapGPT returns a suggested prompt, it displays in the Prompt Editor window. Learn More.

Rendered Template

Displays the template sent to the downstream LLM Snap. When you use the Assistant to generate a prompt, the result is the prompt your wrote in natural language rendered in mustache syntax.

LLM Response

Displays the LLM response. When you enter your prompt, and click Update, the Prompt Composer sends the prompt to the LLM Snap.

Console panel controls legend

Refer to the following sections by letter for a description of the UI actions and underlying behavior.

Label Description
Console display controls
Panel controls
Prompt Composer actions
LLM Snap selector

Console display controls

These controls enable you to set up the Prompt Composer console layout to your preferences.

Label Description
Use the slider to enlarge or minimize the font size.
3-panel view. Default setting.
1-panel view. Prompt Composer only displays the Prompt Editor and SnapGPT Assistant.
Left-side 2-panel view. Prompt Composer only displays Input Schema, Input Data with Prompt Editor and SnapGPT Assistant.
Right-side 2-panel view. Prompt Composer only displays Rendered Template and LLM Response with Prompt Editor and SnapGPT Assistant.
X Closes the Prompt Composer console without saving changes.

Double-vertical bars display on either side of the Prompt Editor panel for horizontal adjustment.

Panel controls

You can further customize the display of each panel with the following controls.

Label Description
Collapses the panel
Expands the panel
Rendered template panel only. The left-facing arrow removes the current prompt or the right-facing error returns to the prompt.
Assistant panel only Sends your question or directive to SnapGPT for Prompts.

Prompt Composer operations

During prompt development, you can use the following operations to iterate on your prompts.

Important: The description of Prompt Composer actions assumes that Autovalidate setting is enabled in User Settings and that Validation is enabled at least at the project level.
Button Description
Validate Saves the latest changes and validates the pipeline. When done, the button is replaced by the status message Validation completed.
Update response Saves the latest changes, validates the pipeline, and updates the LLM output.
Done Closes the Prompt Composer console.

LLM Snap Selector

Click LLM Snap Selector icon to open a dropdown list of downstream LLM Snaps. This enables you to switch between different LLM vendors when testing your prompts.

For the dropdown list to be populated, you need to drag the LLM calling Snap for each vendor and configure a valid account.

For example, if your Prompt Generator Snap is followed by a OpenAI Chat Completions Snap and Google Gemini Generate Snap, both display as options in the Prompt Composer LLM model selector.