Python SDK Reference
Prompts
Create and use a prompt template
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.
Creating Prompt Templates
To create a prompt template, use the create_prompt_template
function:
Getting Prompt Templates
You can retrieve existing prompt templates using the get_prompt_template
function:
Listing Prompt Templates
To list all prompt templates in a project:
Deleting Prompt Templates
To delete a prompt template:
Best Practices
When working with prompt templates:
- Use descriptive names that reflect the template’s purpose
- Include clear system messages to set context
- Document any required input variables
- Version your templates appropriately
- Test templates with various inputs before using in production