Reduce the tokens used for the prompt.

Also fix a syntax error in the prompt.
This commit is contained in:
Ramon Wenger
2023-02-02 13:21:18 +01:00
parent d1b2cf756f
commit ea211fe322

View File

@@ -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