Learn how to create and use prompt templates in experiments
Prompt templates in Galileo allow you to create, store, and reuse prompts across your experiments. They provide a structured way to manage your prompts and ensure consistency in your LLM interactions.
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:
To reference fields from your dataset in your prompt, use double curly braces:
{{ city }}
will be replaced with the value of the city
field inside the input
dictionary.{{ days }}
will be replaced with the value of the days
field inside the input
dictionary.Once prompt templates have been created in Galileo, they can be retrieved by name.
To list all prompt templates in a project:
To delete a prompt template:
Prompts can be used in experiments to evaluate different prompt templates:
When working with prompt templates:
Learn about more datasets, the data driving your experiments.
Learn how to use datasets and experiments to improve your application.
Learn how to create and use prompt templates in experiments
Prompt templates in Galileo allow you to create, store, and reuse prompts across your experiments. They provide a structured way to manage your prompts and ensure consistency in your LLM interactions.
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:
To reference fields from your dataset in your prompt, use double curly braces:
{{ city }}
will be replaced with the value of the city
field inside the input
dictionary.{{ days }}
will be replaced with the value of the days
field inside the input
dictionary.Once prompt templates have been created in Galileo, they can be retrieved by name.
To list all prompt templates in a project:
To delete a prompt template:
Prompts can be used in experiments to evaluate different prompt templates:
When working with prompt templates:
Learn about more datasets, the data driving your experiments.
Learn how to use datasets and experiments to improve your application.