by ashryan · 1y ago · 0 comments
Once you have the diagram code, you can use that as an artifact for new LLM chats related to databases, APIs, etc.
I'm not sure what the history of mermaidchart.com specifically is, but I'm guessing it's new since the ER diagram docs are marked as "coming soon":
https://docs.mermaidchart.com/mermaid/er/syntax
I'm curious how this plugin compares to Markdown Preview Mermaid Support: https://marketplace.cursorapi.com/items?itemName=bierner.mar...
Though, I’ve used it to generate visuals of pipelines too and find it often takes coaching similar to any output that requires very high precision.
Another bit is that gpt4o and sonnet both seem to want to put syntax breaking parentheses in and struggle to avoid continuing to do so.
Once it’s right, though it is a valuable new context artifact to include in further problem solving on a domain.
among (many elaborate) other things it gave me - and I liked it (NB don't trust it willy nilly w.r.t. the below of course) - (auto-indented by 2 spaces hope formatting works) =>
```
DWARVEN PSYCHE DATA FLOW
───────────────────────────────────────────────────────────────────
External Events
(Trauma, Success, Social)
│
▼
┌─────────────────────────┐
│ Event Processing │─── Modulated by → Personality facets
│ (Emotion generation) │─── Modulated by → Personal values
└───────────┬─────────────┘
│ Generates
▼
┌─────────────────────────┐
│ Emotional Reactions │─── Short-term emotion (Anger, Joy, Sadness)
│ (Immediate Thoughts) │
└───────────┬─────────────┘
│ Stored as
▼
┌─────────────────────────┐
│ Memory Storage │─── Short-term → Long-term memories (core)
│ (Core & transient) │─── Decay/Replacement over time
└───────────┬─────────────┘
│ Recalled as
▼
┌─────────────────────────┐
│ Memory Re-experiencing │─── Repeated emotional impacts
│ (Periodic Thoughts) │
└───────────┬─────────────┘
│ Accumulate
▼
┌─────────────────────────┐
│ Stress Level │─── Increased by negative memories
│ (Running total score) │─── Decreased by positive memories
└───────────┬─────────────┘
│ Monitored
▼
┌─────────────────────────┐
│ Stress Threshold Check │─── If threshold breached → Psychological Crisis
│ │─── Else → Coping behaviors activated
└───────────┬─────────────┘
│
│
┌─────┴─────┐
│ │
▼ ▼
┌───────────┐ ┌─────────────────┐
│ Coping │ │ Psychological │
│Mechanisms │ │ Breakdown │
│(Needs met,│ │ (Tantrum, │
│ hardening,│ │ Depression, │
│ social) │ │ Insanity) │
└───────────┘ └─────────────────┘
│ │
│ ▼
│ ┌───────────────────┐
│ │ Personality Change│
└──────▶│ (Facet alterations│
│ via trauma, events│
└───────────────────┘
```p.s. it chose the syntax/format itself; regardless, some time ago when asked for guidance re: how to manage sliding context window, it did suggest tables itself (user employing them for concise input - and likewise requesting tabulated/diagrammatic/schematic output).
p.p.s. (edit) many good very particular insights, if anyone's by chance interested then lmk, I'll ping once distilled interesting output is on a not-yet-extant blog (it's gonna happen finally)...