ProjectBuild an AI-Powered Digital Bank with RAG: the explanation · Module 13: Prompt versioning: changing the assistant safely · part 15 of 20
Part 15 · Module 13: Prompt versioning: changing the assistant safely
Module 13: Prompt versioning: changing the assistant safely
23 min read·
About 30 minutes · Needs: Module 6 (roles and permissions), Module 10 (the agent graph); Module 14 helps for the eval gate · Code: backend/app/services/prompt_service.py, backend/app/agent/prompts.py, backend/app/api/routes/prompts.py
Where this fits
Prompt versions are written by the admin through the API, stored in Postgres, read by the agent, tested by the evals and copied to Langfuse (blue: this module).
This module is about how the assistant's instructions are stored, changed, tested and undone. It touches six parts of the map, but the core is one table and one small service.
The rest of this project is yours to keep
This project is bought on its own, once, and stays readable afterwards, including the parts added to it later.