Replies: 1 comment 4 replies
-
|
I like the argument syntax idea, but what about making it an assignment syntax, something like
IOW, your prompt could be EDIT: That said, |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I'm wondering about how we should implement prompt templates. Here is my use case:
https://publicprompts.art/cute-stuffed-animals/

The prompt is
say I want to save to a wildcard, e.g.
__publicprompts/plush_toy__Here is my yaml file
It would be nice to be able parameterise this template by passing in the animal/character rather than baking it into the prompt.
Some ideas
That's gross and not a very friendly way to do it.
2. We could use jinja templates with variables, e.g.
I know some people use jinja templates, but I've never felt the need, they feel less elegant than the simple DP language. They're also not accessible to non-coders
__publicprompts/plush_toy(elephant)__I'm not sure where I stand on that. We certainly need to be careful not to create a Turing complete language, especially since jinja templates are meant to handle this sort of complexity. The option doesn't feel very intrusive though.
@akx Do you have any opinions/other suggestions?
Beta Was this translation helpful? Give feedback.
All reactions