Enforcing Diagram Generation in AI Prompts
Sometimes, seemingly small changes can have a significant impact on the consistency and quality of AI-generated content. Recently, we encountered an issue in the devlog-ist/landing project where the Mermaid diagram generation was intermittently producing empty strings, despite being a crucial visual component.
The Problem
The initial AI prompt configuration defined the mermaid_diagram