With Prompt Partials, you can save your commonly used templates (which could be your instruction set, data structure explanation, examples etc.) separately from your prompts and flexibly incorporate them wherever required.
{{variable}}
, {{#block}} <string> {{/block}}
, {{^block}}
and other tags.
For more details on template syntax, check out the Prompt Playground documentation which includes a comprehensive guide on how to use tags.
Update
& Publish
flow as prompt templates. You can keep updating the partial and save new versions, and choose to send any version to production using the Publish
feature.
All the version history for any partial is available on the right column and any previous version can be restored to be latest
or published
to production easily. For more details on how versioning works, see the Prompt Versioning documentation.
{{>
.
Portkey lists all of the available prompt partials with their names to help you easily pick:
labels
, @latest
, @published
for versioning. You can only reference partials by their version number, @latest
, or the published version.
prompts.completions
request: