Diagrams
It is often useful to ask the LLM to generate a diagram. Fortunately, many LLMs already know mermaid, a popular Markdown extension to create diagrams and charts.
-
Install the Markdown Preview Mermaid Support extension for VS Code.
-
Mention
diagram
in the program or add thesystem.diagram
in the system prompt list.
👤 user
🤖 assistant
The generated markdown will look like this:
and it gets rendered automatically once you install the extension.