gpt4 book ai didi

openai-api - 如何通过 ChatGPT Api 从 Chatgpt 讨论生成思维导图

转载 作者:行者123 更新时间:2023-12-02 05:49:00 30 4
gpt4 key购买 nike

我有一个想法创建一个应用程序,可以通过chatgpt api绘制chatgpt讨论的思维导图。但是,如何编写一个提示来控制chatgpt写出固定格式的思维导图以便于解析呢?

最佳答案

这可以使用 MermaidJS 标记来完成。提供 ChatGPT 以获取所需语法的示例,然后询问您的思维导图。

提示示例:

This is a mindmap example in MermaidJS notation:
mindmap
root((mindmap))
Origins
Long history
::icon(fa fa-book)
Popularisation
British popular psychology author Tony Buzan
Research
On effectivness<br/>and features
On Automatic creation
Uses
Creative techniques
Strategic planning
Argument mapping
Tools
Pen and paper
Mermaid
Please create a mindmap in MermaidJS notation for an AGI that wants to dominate the world

Screenshot of the conversation

您可以将结果粘贴到 https://mermaid-js.github.io/mermaid-live-editor/ 中以渲染思维导图,或者以编程方式基于 mermaidJS 库编写自己的 HTML 页面以渲染 ChatGPT 结果。

Here is an example of the resulting mind map

关于openai-api - 如何通过 ChatGPT Api 从 Chatgpt 讨论生成思维导图,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/76432988/

30 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com