Create prompts
Connect prompt templates to dataset inputs
When you use datasets in Galileo, the attributes stored in the input in your dataset are made available to your prompt templates using mustache templating. This allows you to create dynamic prompts that adapt to the data in each row. Suppose you have the following dataset:{{ city }}
will be replaced with the value of thecity
field inside theinput
dictionary.{{ days }}
will be replaced with the value of thedays
field inside theinput
dictionary.
Get prompts
Once prompts have been created in Galileo, they can be retrieved by name.List prompts
To list all prompt templates in a project:Delete prompts
To delete a prompt:Use prompts in experiments
Prompts can be used in experiments to evaluate different prompt templates:Best practices
When working with prompts:- Use descriptive names that reflect the prompt’s purpose
- Include clear system messages to set context
- Document any required input variables
- Version your templates appropriately
- Test prompt templates with various inputs before using in production