Log in
Log into community
Welcome to Portkey Forum
New post
View all posts
Related posts
Did this answer your question?
😞
😐
😃
Powered by
Hall
Inactive
Updated 8 months ago
0
Follow
Exploring more flexibility in portkey prompts
Exploring more flexibility in portkey prompts
Inactive
0
Follow
b
bhuvansingla
8 months ago
·
How can I do more than just variables in Portkey prompts? Exploring more flexibility such as Jinja-like syntax with conditionals, etc.
S
V
b
4 comments
Share
Open in Discord
S
Saif
8 months ago
Here's one conditional that acts like "if" condition, based on moustache spec.
I was experimenting using this resource -
https://www.tsmean.com/articles/mustache/the-ultimate-mustache-tutorial/
Attachment
S
Saif
8 months ago
More like a loop:
Attachment
V
Vrushank | Portkey
8 months ago
Thank you @Saif. @bhuvansingla happy to get on a call and share more about the Partials feature which does exactly this!
b
bhuvansingla
8 months ago
That's for sharing this Saif! Really great to know it already supports Moustache.
@vru.shank I see how partials can be used nicely to make prompt management modular. Will connect over DM.
Add a reply
Sign up and join the conversation on Discord
Join on Discord