Advantages of Prompt Bundling
-
Release Management Controls
- This approach to deployment provides full control over what’s running in production, since all prompt & model iterations managed in Freeplay get treated like any other part of your code.
- Facilitates compliance obligations for peer review, use of established version control systems like GitHub, etc. A detailed guide on using prompt bundling with GitHub Actions is here.
-
Increased Production Resilience
- By decoupling the fetching of prompt templates from Freeplay, you ensure your application can keep serving requests if Freeplay is unavailable.
- Unintended prompt changes cannot hurt production because prompts are only refreshed during your application build process.
-
Reduced Latency
- By reading the prompt template from your application filesystem instead of fetching it from Freeplay on each request, you can slightly reduce latency overhead.
Disadvantages of Prompt Bundling
-
Increased Cycle Time from Experimentation to Production
- Requiring a build process to get new prompts into production, increasing cycle time between prompt updates and the deployment of those updates into production.
- NOTE: Many Freeplay customers choose to rely on server-side prompt management in lower level environments (e.g. dev/staging) for quick experimentation, and then configure prompt bundling in their code for production.
Implementation
Downloading of prompts is handled by the Freeplay Python SDKInstall the Python SDK
Python will be used for to download the prompts for all SDKsDownload the Prompt Templates
Download all Prompt Templates
To download all prompt templates in your account, you can use thedownload-all option for the API. This will download all prompts and store them by project id. For private projects, prompts will only be downloaded if the user has access to that project.
Point your Freeplay Client at your Prompt Directory
What’s Next Learn how to use Mustache syntax for advanced prompt templating or move onto the next section on Evaluations. Ask AI

