Diagrams
It is often useful to request an 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 addsystem.diagram
to the system prompt list.
👤 user
🤖 assistant
The generated Markdown will appear as follows:
and it gets rendered automatically once you install the extension.