Skip to content

Commit

Permalink
suggest-titles runs its output through remove-numbers.
Browse files Browse the repository at this point in the history
Part of #55.
  • Loading branch information
jkomoros committed Jul 23, 2023
1 parent 5541408 commit 6e40e02
Showing 1 changed file with 34 additions and 26 deletions.
60 changes: 34 additions & 26 deletions seeds/example-complex.json
Original file line number Diff line number Diff line change
Expand Up @@ -166,35 +166,43 @@
}
},
"suggest-titles": {
"type": "prompt",
"prompt": {
"type": "compose",
"prefix": "Here are some titles of essays, one per line:\n",
"items": {
"type": "map",
"type": "let",
"name": "arg:input",
"value": {
"type": "prompt",
"prompt": {
"type": "compose",
"prefix": "Here are some titles of essays, one per line:\n",
"items": {
"type": "recall",
"memory": {
"type": "input",
"question": "Which memory to use?",
"default": "polymath-import"
"type": "map",
"items": {
"type": "recall",
"memory": {
"type": "input",
"question": "Which memory to use?",
"default": "polymath-import"
},
"k": 50
},
"k": 50
"block": {
"type": "property",
"object": {
"type": "extract",
"template": "Title:\n{{title}}\nContent:\n{{content}}",
"input": {
"type": "var",
"name": "value"
}
},
"property": "title"
}
},
"block": {
"type": "property",
"object": {
"type": "extract",
"template": "Title:\n{{title}}\nContent:\n{{content}}",
"input": {
"type": "var",
"name": "value"
}
},
"property": "title"
}
},
"suffix": "\nSuggest 10 new topics for essays that related to these essays but distinct, one per line."
"suffix": "\nSuggest 10 new topics for essays that related to these essays but distinct, one per line."
}
},
"block": {
"packet": "./example-utility.json",
"seed": "remove-numbers"
}
}
}
Expand Down

0 comments on commit 6e40e02

Please sign in to comment.