ChatGPT for Solution Design
This article demonstrates yet another usecase of ChatGPT, aimed to augment product managers, architects, solution designers, technical leads, DBA's etc. Large Language Models (LLMs), such as davinci-003 from OpenAI that powers ChatGPT, can generate code based on natural language instructions. You can use this power of LLM's to create various types of solution design and archictecture diagrams too - sequence diagrams, class diagrams, gantt charts, deployment diagrams etc. Wondering how?
The answer is Mermaid.js + ChatGPT as demonstrated below -
Copy the code and paste it in https://mermaid.live/ or you can also import mermaid.js library and render it as an html page. The above code results in this:
As ChatGPT saves the previous context you can ask it to modify the diagram as well (I asked it to add Kubernetes and NGINX):
And finally, I asked it for some recommendations for lower latency and better throughput, it was smart to recommend a few things and update the script with caching and asyncio, resulting in the following sequence diagram:
This may not be perfect, but much better than a first draft which can be easily modified/corrected for specific needs.
You can explore a combination of mermaid.js and chatGPT to create other solution design assets such as datamodels, gantt charts (it gives recommendations and plans phases based on goals set by you).
Interesting times ahead as LLM's mature and technologies such as these are available for live production use cases.
RSI / RSSI / DSI / Consultant Infrastructures et SSI
2y👌 🙏
Founder & CEO at ResearchQX | Ex-Deloitte, i2, Novell, Citigroup | IITB
2yInteresting read Arnab!
R&D Tax Manager | AI Engineer and Mathematician
2yGreat read, thanks for sharing Arnab