3 Craft your prompts
3.1 Create a prompt
Step 1: Navigate to Prompts
Click “Prompts” in the left sidebar after choosing your project.
Step 2: Create a New Prompt
- Click on the
Create new prompt
button. - Give it a Name: Choose a descriptive name for your prompt.
- (Optional) Add Details: Provide a short description.
- Set the Stage: Write a system instruction to guide the AI’s initial response.
Step 3: Craft Your Prompt
Structure: A prompt contains a system instruction & user message.
-
The
System instruction
set the role and goal and high level context. -
The
user message
will specify the details such as input data format, output format instructions, rules and tones. -
The
user message
supportsvariables
. Variables incorporate custom variables surrounded by double curly braces, like{{ customized_type }}
.
- Variables act as placeholders for values you’ll provide later. When using the prompt,
provide the specific value you want to insert for the variable.
- When running an experiment, the variables will be automatically inserted from your query set.
Step 4: Try out the prompt in Playground
- Choose API, model and parameters.
- Fill the variables with test values. The variables will be incorporated into the “user message” and you can review the message in the “Input Preview” box.
- Click
Run
button.