mrseanryan / gpt-diff

Use LLM to describe a difference graph between versions of a compositional document
MIT License
0 stars 0 forks source link

Try using DOT to describe changes to a document -> LLM Code Llama #1

Open mrseanryan opened 1 year ago

mrseanryan commented 1 year ago

DOT:

digraph G {
    User -> MySection_1 [label="renamed from My Cars to My Favourite Cars"]
    User -> MySection_0 [label="Removed"]
    User -> MySection_3 [label="Added"]
}

https://dreampuf.github.io/GraphvizOnline

what is the overall purpose of this DOT graph:

digraph G {
    User -> MySection_1 [label="renamed from My Cars to My Favourite Cars"]
    User -> MySection_0 [label="Removed"]
    User -> MySection_3 [label="Added"]
}
mrseanryan commented 1 year ago
Generate a summary of this DOT graph suitable for use in a git commit message:

digraph G {
    User -> MySection_1 [label="renamed from My Cars to My Favourite Cars"]
    User -> MySection_0 [label="Removed"]
    User -> MySection_3 [label="Added"]
}

OUTPUT:

"Renamed 'My Cars' to 'My Favorite Cars', removed 'My Section 0', and added 'My Section 3'"

A - Generate a summary of the actions performed by User, as described in this DOT graph:

digraph G { User -> MySection_1 [label="renamed from My Cars to My Favourite Cars"] User -> MySection_0 [label="Removed"] User -> MySection_3 [label="Added"] }

OUTPUT:

The user renamed 'My Cars' to 'My Favorite Cars', removed 'My Section 0', and added 'My Section 3'.

The user has made several changes to their sections. They renamed "My Cars" to "My Favourite Cars". They also removed "My Section_0" and added "My Section_3".

B - Generate counts of operations performed by User, as described in this DOT graph:

digraph G { User -> MySection_1 [label="renamed from My Cars to My Favourite Cars"] User -> MySection_0 [label="Removed"] User -> MySection_3 [label="Added"] }

OUTPUT:

Renamed one section (count = 1)
Removed one section (count = 1)
Added one section (count = 1)

A + B could both be executed and their results combined.