You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an issue with the Immediate Evaluation syntax.
My goal is to generate prompts that follow distributive logic rules.
So the template would look like this
There is a cat and a vase or there is a cat and a phone
The objects I want to iterate through every combination but the animals I want to keep the same in each prompt.
After reading through the syntax I figured something like this would work:
${animals=!{cat|dog|bird}}
${objects1={vase|chair|hat}}
${objects2={phone|laptop|book}}
There is a ${animals} and a ${objects1} or there is a ${animals} and a ${objects2}
This only iterates through cat for every object but does not go to dog or bird.
Putting a ~ in front of cat makes it shuffle through the list of animals but is random so not ideal for me.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone,
I have an issue with the Immediate Evaluation syntax.
My goal is to generate prompts that follow distributive logic rules.
So the template would look like this
There is a cat and a vase or there is a cat and a phone
The objects I want to iterate through every combination but the animals I want to keep the same in each prompt.
After reading through the syntax I figured something like this would work:
${animals=!{cat|dog|bird}}
${objects1={vase|chair|hat}}
${objects2={phone|laptop|book}}
There is a ${animals} and a ${objects1} or there is a ${animals} and a ${objects2}
This only iterates through cat for every object but does not go to dog or bird.
Putting a ~ in front of cat makes it shuffle through the list of animals but is random so not ideal for me.
Am I doing something wrong or is this a bug?
Beta Was this translation helpful? Give feedback.
All reactions