Creating a Prompt

Where to Create a Prompt

Prompts are the essential parts of:


They can also be created separately using the + button on a chosen Projects and choosing Prompt.

Prompts can later be imported in other modules.


Choosing a Model

The first step to building a prompt is choosing a model.

📘

To select a model, it must be available through the Model Garden.

Here you can configure the model's parameters which define its behavior, to learn more about parameters, see Model Parameters.


Messages

To start preparing messages for your model select Add Message in the Prompt Template panel.

Here, you will be able to enter a message that the model will receive before generating responses. This can be used to set the context to any hypothesis or prompt you want to test.

If you want to chat with the model, we advise you to do this outside of the prompt template.

The prompt template that will be used as context for the language model to process queries.

The prompt template that will be used as context for the language model to process queries.


Roles

When adding a message you can choose from different roles, roles are used for different use-cases when interacting with a language model.

RoleDescriptionExample
SystemA guideline or context for the language model, directing how it should interpret and respond to requests."You are an expert botanist. Respond briefly to questions with one-line answers."
UserAn actual query posed by the user."Which plants thrive in shady environments?"
AssistantResponses to user queries by the language model."Ferns, Hostas, and Hydrangeas are some plants that thrive in shady environments."

Input Variables

You can use inputs within your Prompt Template to make them dynamic.

To add an input , simply type {{input_key}}within a message.

To see all declared inputs, select the Inputs block at the top-right of the page, here you can enter default values used during generation, for all inputs.

See where to insert the input and how it overwrites the input

See where to insert the input and how it overwrites the input


Read More

There are more features you can access within Prompt: