Templated prompts are quite practical. These are prompts with placeholders for user arguments, which enable re-usability and helps prevent duplicating prompts for only minor differences. For example, a "summarize" template may look something like the following:

Summarize the following text in maximum {{words}} max:

{{text}}

During execution of the above, a user dynamically populates the placeholders {{words}} and {{text}}.

Lately I’ve seen several projects for executing such "templated" prompts. For example, the popular simonw/llm tool enables you to create and execute a template like the above (with slightly different syntax) as follows:

echo "some long text" | llm -t summarize -p words 5

You execute llm, having it…

Similar Posts

Loading similar posts...

Keyboard Shortcuts

Navigation
Next / previous item
j/k
Open post
oorEnter
Preview post
v
Post Actions
Love post
a
Like post
l
Dislike post
d
Undo reaction
u
Recommendations
Add interest / feed
Enter
Not interested
x
Go to
Home
gh
Interests
gi
Feeds
gf
Likes
gl
History
gy
Changelog
gc
Settings
gs
Browse
gb
Search
/
General
Show this help
?
Submit feedback
!
Close modal / unfocus
Esc

Press ? anytime to show this help