Hacker News new | ask | show | jobs
by ElFitz 1110 days ago
Oh! I thought this was something about describing a data model in plain text and having an LLM generate the entity-relationship diagram tool.

I’ve done this with GPT4, asking it to output Mermaid relationship diagrams. And it’s usually impressively good (never went beyond ~10 entities). I also had it update and fix the result using natural language feedback.

I sometimes had to touch up a few things "by hand", but I really wouldn’t bother doing it from scratch myself anymore.

Even the failures are interesting, as they often result from an unclear description, or issues in my own understanding of the domain or model.

1 comments

ditto, GPT-4 is very impressive with all types of mermaid [0] diagrams! even helps w/ styling and formatting tweaks. It's helped me so much with better coverage and maintainability on diagrams for software & systems projects.

0. https://mermaid.live/