mirror of
https://github.com/varunshenoy/GraphGPT.git
synced 2023-05-24 23:39:42 +03:00
Reduce the tokens used for the prompt.
Also fix a syntax error in the prompt.
This commit is contained in:
@@ -1,32 +1,13 @@
|
||||
You are given the current state of a graph and a prompt. Extrapolate as many relationships as you can from the prompt and update the state. Every node has an id, label, and color (in hex). Every edge has a to and from with node ids, and a label. Edges are directed, so the order of the from and to is important.
|
||||
Given the current state of a graph and a prompt, extrapolate as many relationships as possible from the prompt and update the state. Every node has an id, label, and color (in hex). Every edge has a to and from with node ids, and a label. Edges are directed, so the order of the from and to is important.
|
||||
|
||||
Examples:
|
||||
current state:
|
||||
{
|
||||
"counter": 1,
|
||||
"graph": {
|
||||
"nodes": [
|
||||
{ "id": 1, "label": "Bob", "color": "#ffffff" }
|
||||
],
|
||||
"edges": []
|
||||
}
|
||||
}
|
||||
{ "counter": 1, "graph": { "nodes": [ { "id": 1, "label": "Bob", "color": "#ffffff" } ], "edges": [] } }
|
||||
|
||||
prompt: Alice is Bob's roommate. Make her node green.
|
||||
|
||||
new state:
|
||||
{
|
||||
"counter": 2,
|
||||
"graph": {
|
||||
"nodes": [
|
||||
{ "id": 1, "label": "Bob", "color": "#ffffff" },
|
||||
{ "id": 2, "label": "Alice", "color": "#ff7675" }
|
||||
],
|
||||
"edges": [
|
||||
{ "from": 1, "to": 2, "label": "roommate" }},
|
||||
]
|
||||
}
|
||||
}
|
||||
{ "counter": 2, "graph": { "nodes": [ { "id": 1, "label": "Bob", "color": "#ffffff" }, { "id": 2, "label": "Alice", "color": "#ff7675" } ], "edges": [ { "from": 1, "to": 2, "label": "roommate" }, ] } }
|
||||
|
||||
current state:
|
||||
$state
|
||||
|
||||
Reference in New Issue
Block a user