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
-
I'm wondering about how we should implement prompt templates. Here is my use case:
https://publicprompts.art/cute-stuffed-animals/
![image](https://user-images.githubusercontent.com/420786/228333172-6b2eabb3-e2f1-4d0e-ae19-a708ce5ca53b.png)
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