Skip to content

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.

To create a prompt partial,

  1. Click on the New Prompt Partial button in the top right corner of the FloTorch Console.
  2. Provide a name, description and data.
  3. Click on Create button.

When a new prompt partial is created, a new version is created automatically with draft status.

To publish a prompt partial

  1. Identify the prompt partial you want to publish.
  2. Click on Actions dropdown and click on Publish Latest
  3. Identify the version you want to publish.
  4. 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.

To update a prompt partial version,

  1. Identify the prompt partial version you want to update.
  2. Click on Actions dropdown and click on Versions.
  3. You will be navigated to versions table.
  4. Click on Actions dropdown button and select Configure.
  5. You can update your prompt partial version data and click on Update button.

To publish a prompt partial version,

  1. Identify the prompt partial you want to publish.
  2. Click on Actions dropdown and click on Versions
  3. Identify the version you want to publish.
  4. 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.