Workflows
Creating a workflow
Section titled “Creating a workflow”To create a workflow, you need to click on Create FloTorch Workflow
button in the top right corner of the FloTorch Console. Provide a name and description for the workflow. Workflow name should be unique.
Once a workflow is created, you will be navigated to version configuration page, meanwhile your workflow will appear in Workflows
list.
When a workflow is created, a default version 1
is created automatically and is set in Draft
state. You need to configure the workflow version and publish it to make it available for use through Gateway.
Workflow Versions
Section titled “Workflow Versions”Workflow versions are the individual configurations of a workflow. Each workflow can have multiple versions. Each version can have different agents. Once an workflow version is published, it is immutable and cannot be changed.
A new version can be created by clicking on New Version
button in the top right corner of the FloTorch Console or on Workflow version configure page by clicking on three dots button beside publish button which will open a dropdown which contains Create new version
.
A new copy of any published or draft version (make a revision) can be created.
To create a copy of published version, click on Make a revision button which is located top right of the page.
To create a copy of draft version, click on three dots button, which will open dropdown, select make a revision option.
Configuring a Workflow Version
Section titled “Configuring a Workflow Version”Workflow versions can be configured using below instructions.
- Identify the workflow you want to configure from the
Workflows
table. - Click on
Actions
dropdown button and selectView Versions
. - You will see list of
Workflow versions
in slideover table. - Again here, click on any table versions table row which has version number to open workflow version configuration page or click on a particular row which will navigate to latest workflow version configure page of that particular workflow.
You will be presented with a workflow configuration canvas. You can configure the following:
- Agents - List of agents which are created earlier and have atleast one version published.
- Knowledge base(RAG/Long term memory) - List of Knowledge bases which are already crated in workspace.
- Memory - Memory which is already created in workspace.
- Connection/Edges - You can connect with one node(agent) to another for prompt chaining.
Adding and Configuring Agents to Workflow
Section titled “Adding and Configuring Agents to Workflow”- On the canvas you can see
Start
andEnd
nodes which are not deletable. - Click on
Add agent
button, which open slideover and shows list of agents whcih are already created and have atleast one publshed version. - Select any one agent and click on
Add agent
button. the agent will be added to the canvas. You can add as many agents as you want. - Once the agents are added, you can add additional
knowledge base(RAG/Long term memory)
andMemory
. - To add the above Memory and Knowledge bases click on any node (agent), a slideover will be opened which contains agent info. If you want you can change the agent version and select Knowledge bases(RAG/Long term memory) and Memory.
- After selecting click on save button to save configuration.
- Once the agents are added and configured, you can reposition the nodes by drag and drop, and can delete the node by hovering on node and click on trash icon.
- To Delete the edges, select the edge and click backspace button on your keyboard.
- You can reposition, drag and drop, add and delete the nodes and edges on the canvas.
- Once the workflow version is published, you can not edit or delte edges and nodes on canvas.
Once the workflow version is configured, you can publish it to make it available for use through Gateway.
Publishing an Workflow Version
Section titled “Publishing an Workflow Version”AgeWornt versions can be published using the Publish
button which is located top right corner of the workflow version canvas.
Once you click Publish
button a new form will be opened in slideover which contains summary of version and mark as latest checkbox.
If you mark the checkbox mark as latest as true, the current published version can be marked as latest version to the workflow.
To publish already created versions which are in draft mode, click on history button which is located before Publish/Make a revision button, it will be opened a slideover with agent version list table. there click on publish button for un published versions, and click on mark as latest button to mark that version as latest version to the agent.
Once an workflow version is published, it is immutable and cannot be changed.
The published workflow can be used in OpenAI API as flotorch/<workflow-name>:<version>
Publishing Latest Version of an Workflow
Section titled “Publishing Latest Version of an Workflow”You can publish the latest version of an workflow by selecting a particular version.
- Identify the workflow you want to publish the latest version of.
- Click on
Actions
dropdown and selectPublish Latest
to publish the latest version of the workflow. - You will be presented with a slideover with versions in dropdown list. Select the version you want to publish as latest and click on
Publish
to publish the latest version of the workflow.
Similarly like above, you can publish latest by clicking on View Versions
options on actions menu, the slideover will be opened with workflow versions list, there you can publish or mark the version as latest.
Once the latest version is published, it is tagged as published
and can be used in OpenAI API as flotorch/<workflow-name>
without specifying the version.