Prompt Management & Storage

Galileo Prompt also includes a production-ready Prompt Store that can store various versions of your Prompt Templates. Prompt Templates are associated with your project to help organize them into a single place.

Prompt templates can be created from the Galileo Console or the promptquality Python client and are available for experiments or production workflows through either interaction mechanisms.

Prompt Versioning

As you experiment with and evolve your prompt, newer versions of your template are created automatically. Prompt Versions are auto-incrementing integers. We also provide a simple way to version new prompts as you edit the template in the Galileo Console.

Mark Version as 'Selected'

Once you've experimented with a few different prompt templates and have evaluated them, you can mark one version as the 'Selected' version. This can be done from the UI, by using the dropdown next to the template name:

or from the Python client:

from promptquality.helpers import select_template_version

select_template_version(version=<version-number>, project_id=<project-id>, template_id=<template-id>)

Fetch 'Selected' Prompt

If you want to use this template version outside the experimentation setting, you can do so by fetching the prompt using the promptquality Python client.

from promptquality.helpers import get_template

template = get_template(project_id=<project-id>, template_id=<template-id>)

The returned template will be of type BaseTemplateResponse, which includes the 'Selected' versions text in the template attribute.

Last updated