draupner1 / oai

ChatGPT into CLI using OpenAIs API
Apache License 2.0
4 stars 2 forks source link

Prompt to Graphvis chart #7

Open neural-loop opened 8 months ago

neural-loop commented 8 months ago

A workflow I sometimes use:

Provide a Graphvis .dot file showing a conceptual framework for thing (where thing is something like an architecture, or network infrastructure) Then I hop into the command line and convert the dot file into an image

dot -Tpng edge3.dot -o output.png

It might be nice in oai to do a prompt direct to a graph image, where even it might open the image to the desktop after it is completed

draupner1 commented 7 months ago

Hi Jason, and thank you for the tip on yet another graph-tool. I know of a few more... (if they are still alive?)

I'm not sure about what you propose here??

The openAI API only handles .png files for their image processing.

Graphwis files are not handled. This could possibly be done with a "function".

But I guess I'm a bit thick. Are you asking for a graphical flowchart output from an LLM?

neural-loop commented 7 months ago

The thinking was to ask for it to build a DOT file, and you could extract this file from the response and write it as a file. So in effect a function / handler. After the dot file is written, it can run graphvis command to generate the image and open it

It can make some cool graphvis graphs, I've tried some things like telling that its a cisco expert and I'd like it to show me a network schematic. Or to give a mindmap of a certain topic.

It seems to work very consistently when I ask it to produce a dot file, so I thought something like this cloud work nice.

On Sat, Nov 25, 2023 at 7:27 AM draupner1 @.***> wrote:

Hi Jason, and thank you for the tip on yet another graph-tool. I know of a few more... (if they are still alive?)

I'm not sure about what you propose here??

The openAI API only handles .png files for their image processing.

Graphwis files are not handled. This could possibly be done with a "function".

But I guess I'm a bit thick. Are you asking for a graphical flowchart output from an LLM?

— Reply to this email directly, view it on GitHub https://github.com/draupner1/oai/issues/7#issuecomment-1826296779, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAE75EPB76QHK6LLTY2EDUTYGHP2ZAVCNFSM6AAAAAA7RCPDGWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMRWGI4TMNZXHE . You are receiving this because you authored the thread.Message ID: @.***>

--