Prompt Partials
Prompt Partials are the reusable parts of a prompt. You can create a partial and use it in your prompt using the {<partial-name>}
tag. FloTorch will replace the {<partial-name>}
tag with the actual value when the prompt is used.
With versioning, you can manage the partials on the fly without any downtime.
Creating a Prompt Partial
Section titled “Creating a Prompt Partial”To create a prompt partial,
- Click on the
New Prompt Partial
button in the top right corner of the FloTorch Console. - Provide a name, description and data.
- Click on
Create
button.
When a new prompt partial is created, a new version is created automatically with draft status.
Publishing a Prompt Partial
Section titled “Publishing a Prompt Partial”To publish a prompt partial
- Identify the prompt partial you want to publish.
- Click on
Actions
dropdown and click onPublish Latest
- Identify the version you want to publish.
- Click on
Publish
button.
Once a prompt partial is published, it is set to active status and cannot be updated. You can use the prompt partial in your prompt by using the {<partial-name>:<version>}
tag.
Updating Prompt partial version
Section titled “Updating Prompt partial version”To update a prompt partial version,
- Identify the prompt partial version you want to update.
- Click on
Actions
dropdown and click onVersions
. - You will be navigated to versions table.
- Click on
Actions
dropdown button and selectConfigure
. - You can update your prompt partial version data and click on
Update
button.
Publishing a Prompt Partial version
Section titled “Publishing a Prompt Partial version”To publish a prompt partial version,
- Identify the prompt partial you want to publish.
- Click on
Actions
dropdown and click onVersions
- Identify the version you want to publish.
- Click on
Publish
button.
Once a latest version of a prompt partial is published, it is set to active status and cannot be updated. Once a latest version is published, it will be used by default when the prompt is used.
You can use the {<partial-name>}
tag to use the latest version of the prompt partial.