Skip to content

Commit

Permalink
Add a write-favorite-things-limerick complex example, which shows o…
Browse files Browse the repository at this point in the history
…ff `compose`.

It uses the memories stored via `remember-favorite-things`.

Part of #36.
  • Loading branch information
jkomoros committed Jul 4, 2023
1 parent 84d6e99 commit 19f11d4
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions seeds/example-complex.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,32 @@
{
"version": 0,
"seeds": {
"write-favorite-things-limerick": {
"type": "let",
"name": "memory",
"value": "komoroske.com:favorite_things",
"block": {
"type": "let",
"name": "komoroske.com:favorite_things",
"value": {
"type": "recall",
"query": "",
"k": 20
},
"block": {
"type": "prompt",
"prompt": {
"type": "compose",
"prefix": "Here are a few of my favorite things:\n",
"items": {
"type": "var",
"name": "komoroske.com:favorite_things"
},
"suffix": "\n\nPlease write a limerick about them."
}
}
}
},
"remember-favorite-things": {
"type": "let",
"name": "memory",
Expand Down

0 comments on commit 19f11d4

Please sign in to comment.