Roles in Prompt Editor
Learn about the different roles used in the Latitude prompt editor.
Overview
The Latitude prompt editor uses different roles to structure conversations and define the behavior of the AI model. The three main roles are:
System Role
The system role is used to set the overall context and behavior for the AI model. It’s typically used at the beginning of a prompt to give general instructions or set the tone for the conversation. Example:
User Role
The user role represents the input or questions from the end-user. This is where you’d place the actual queries or statements that the AI model should respond to. Example:
Images
User messages can include images. You can use the <image>
tag to include an image in the user role. The image tag must contain either a path to the image or its base64 encoded content. Example:
Note: Only models with multimodal capabilities – like gpt-4o
– can process images in prompts.
Assistant Role
The assistant role represents the AI model’s responses. You can use this to provide example responses or to structure multi-turn conversations. Example:
Using Roles in Your Prompts
When creating prompts, you can use these roles to structure your conversations and guide the AI model’s behavior. Here’s a simple example: